commit | c39b1b4e5178e7f2798de84b0bc5009aa2e9e95f | [log] [tgz] |
---|---|---|
author | Matt Mower <mowerm@gmail.com> | Fri Jan 01 18:38:43 2016 -0600 |
committer | Matt Mower <mowerm@gmail.com> | Wed Jan 18 21:10:04 2017 +0100 |
tree | fa07e2e11a9ac9e9743240ab691ab7ac7d8ae37a | |
parent | 91584b2603456a1f57b593e588f381def18d8f01 [diff] |
gui: Initialize button render position Change-Id: I716ae0664ea454706cb940d1bfd38259da53d176
diff --git a/gui/button.cpp b/gui/button.cpp index 45614e4..a9b02a3 100644 --- a/gui/button.cpp +++ b/gui/button.cpp
@@ -85,7 +85,7 @@ 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);