Skip to content

Commit

Permalink
fixup! Drop Down List: fixed dialog not dismissing when clicking outs…
Browse files Browse the repository at this point in the history
…ide area"
  • Loading branch information
CelticMinstrel committed Sep 8, 2016
1 parent 5b806d4 commit ac4b024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/dialogs/drop_down_list.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit ac4b024

Please sign in to comment.