A last bit of cleanup before I stop working on it.
This commit is contained in:
parent
b9aab8ed68
commit
28d59eb820
1 changed files with 3 additions and 3 deletions
|
@ -96,9 +96,9 @@ void file_chooser::process_event() {
|
|||
// The menu does not implement focus functionality, so we fake
|
||||
// it. We give the file list focus whenever the filename textbox
|
||||
// does not have focus. Inflexible but easy solution.
|
||||
if (!(mousex > location().x && (unsigned)mousex < location().x + width()
|
||||
&& mousey > location().y
|
||||
&& (unsigned)mousey < location().y + height() - filename_textbox_.height())) {
|
||||
SDL_Rect const &loc = location();
|
||||
if (!(mousex > loc.x && (unsigned)mousex < loc.x + loc.w && mousey > loc.y
|
||||
&& (unsigned)mousey < loc.y + loc.h - filename_textbox_.height())) {
|
||||
// Hmm, as I understand it this should happen automatically when
|
||||
// the mouse is in the textbox again. However this is not the
|
||||
// case so this is done explicitly here.
|
||||
|
|
Loading…
Add table
Reference in a new issue