diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-20 23:42:17 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-20 23:42:17 (GMT) |
| commit | fa201a7aeb6c645801a11a115ef6baeed9edf1e5 (patch) | |
| tree | 616a98dddd3b6f93dd6580f762298690c320b3bf /src/interface | |
| parent | 6a331fdaf848ce82adc930ad24ac15c5259d2262 (diff) | |
| download | powder-fa201a7aeb6c645801a11a115ef6baeed9edf1e5.zip powder-fa201a7aeb6c645801a11a115ef6baeed9edf1e5.tar.gz | |
Fix some uninitialised variables
Diffstat (limited to 'src/interface')
| -rw-r--r-- | src/interface/Button.cpp | 3 | ||||
| -rw-r--r-- | src/interface/Window.cpp | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/interface/Button.cpp b/src/interface/Button.cpp index 783c297..659aeed 100644 --- a/src/interface/Button.cpp +++ b/src/interface/Button.cpp @@ -21,6 +21,7 @@ Button::Button(Window* parent_state, std::string buttonText): isMouseInside(false), isButtonDown(false), isTogglable(false), + toggle(false), actionCallback(NULL), textPosition(ui::Point(0, 0)), textVAlign(AlignMiddle), @@ -35,6 +36,7 @@ Button::Button(Point position, Point size, std::string buttonText): isMouseInside(false), isButtonDown(false), isTogglable(false), + toggle(false), actionCallback(NULL), textPosition(ui::Point(0, 0)), textVAlign(AlignMiddle), @@ -49,6 +51,7 @@ Button::Button(std::string buttonText): isMouseInside(false), isButtonDown(false), isTogglable(false), + toggle(false), actionCallback(NULL), textPosition(ui::Point(0, 0)), textVAlign(AlignMiddle), diff --git a/src/interface/Window.cpp b/src/interface/Window.cpp index e28d34b..ca29be0 100644 --- a/src/interface/Window.cpp +++ b/src/interface/Window.cpp @@ -7,7 +7,8 @@ using namespace ui; Window::Window(Point _position, Point _size): Position(_position), Size(_size), - focusedComponent_(NULL) + focusedComponent_(NULL), + AllowExclusiveDrawing(true) { } |
