diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-04-29 18:32:12 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-04-29 18:32:12 +1000 |
commit | a08f9d42fc9ef713a10e2bbc8362b9c697d4304e (patch) | |
tree | 7ba3d60c4cbb097dcadf1c6af3d3db471bf53c8f | |
parent | 1ce3f20fa49830fee1a03d1682214dda81e8548a (diff) | |
download | uGFX-a08f9d42fc9ef713a10e2bbc8362b9c697d4304e.tar.gz uGFX-a08f9d42fc9ef713a10e2bbc8362b9c697d4304e.tar.bz2 uGFX-a08f9d42fc9ef713a10e2bbc8362b9c697d4304e.zip |
Fix a bug in detecting the button area in a frame window
-rw-r--r-- | src/gwin/gwin_frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gwin/gwin_frame.c b/src/gwin/gwin_frame.c index 8811dce6..2586fa98 100644 --- a/src/gwin/gwin_frame.c +++ b/src/gwin/gwin_frame.c @@ -58,7 +58,7 @@ static void forceFrameRedraw(GWidgetObject *gw) { coord_t pos; // We must be clicking on the frame button area to be of interest - if (y < BUTTON_T && y >= BUTTON_T+BUTTON_Y) + if (y < BUTTON_T || y >= BUTTON_T+BUTTON_Y) return; pos = gw->g.width - (BORDER_R+BUTTON_X); |