Fix a bug in detecting the button area in a frame window

ugfx_release_2.6
inmarket 2015-04-29 18:32:12 +10:00
parent 1ce3f20fa4
commit a08f9d42fc
1 changed files with 1 additions and 1 deletions

View File

@ -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);