fixup! Drop Down List: fixed dialog not dismissing when clicking outside area"
This commit is contained in:
parent
5b806d4f66
commit
ac4b024fa6
1 changed files with 2 additions and 2 deletions
|
@ -36,9 +36,9 @@ namespace {
|
|||
SDL_Rect rect = window.get_rectangle();
|
||||
if(coordinate.x < rect.x || coordinate.x > rect.x + rect.w || coordinate.y < rect.y || coordinate.y > rect.y + rect.h ) {
|
||||
window.set_retval(twindow::CANCEL);
|
||||
} else {
|
||||
window.set_retval(twindow::OK);
|
||||
}
|
||||
|
||||
window.set_retval(twindow::OK);
|
||||
}
|
||||
|
||||
void resize_callback(twindow& window)
|
||||
|
|
Loading…
Add table
Reference in a new issue