gui: Initialize button render position
Change-Id: I716ae0664ea454706cb940d1bfd38259da53d176
This commit is contained in:
@@ -85,7 +85,7 @@ GUIButton::GUIButton(xml_node<>* node)
|
||||
|
||||
mHighlightColor = LoadAttrColor(FindNode(node, "highlight"), "color", &hasHighlightColor);
|
||||
|
||||
int x, y, w, h;
|
||||
int x = 0, y = 0, w = 0, h = 0;
|
||||
TextPlacement = TOP_LEFT;
|
||||
if (mButtonImg) {
|
||||
mButtonImg->GetRenderPos(x, y, w, h);
|
||||
|
||||
Reference in New Issue
Block a user