summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/Button.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nGenEx/Button.cpp')
-rw-r--r--nGenEx/Button.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/nGenEx/Button.cpp b/nGenEx/Button.cpp
index c9cfcab..03c0dff 100644
--- a/nGenEx/Button.cpp
+++ b/nGenEx/Button.cpp
@@ -55,7 +55,7 @@ Button::Button(Screen* s, int ax, int ay, int aw, int ah, DWORD aid)
drop_shadow = false;
sticky = false;
picture_loc = 1;
- captured = 0;
+ captured = false;
pre_state = 0;
text_align = DT_CENTER;
@@ -78,7 +78,7 @@ Button::Button(ActiveWindow* p, int ax, int ay, int aw, int ah, DWORD aid)
drop_shadow = false;
sticky = false;
picture_loc = 1;
- captured = 0;
+ captured = false;
pre_state = 0;
text_align = DT_CENTER;
@@ -475,7 +475,7 @@ int Button::OnLButtonUp(int x, int y)
{
if (captured) {
ReleaseCapture();
- captured = 0;
+ captured = false;
}
button_state = pre_state;