fix Open_popup() bug introduced in f9dc0358c4bfe2b4bcc1bb23ed3c437a32d78bec

This commit is contained in:
Thomas Bernard 2019-01-22 11:10:22 +01:00
parent 24b197e6a6
commit 40dfa79612
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -2425,7 +2425,7 @@ void Open_popup(word x_pos, word y_pos, word width,word height)
height = Screen_height/Menu_factor_Y;
if (y_pos + height*Menu_factor_Y > Screen_height) // fix dropdown that would get bellow the screen
y_pos = Screen_height - height*Menu_factor_Y;
if (y_pos + width*Menu_factor_X > Screen_width)
if (x_pos + width*Menu_factor_X > Screen_width)
x_pos = Screen_width - width*Menu_factor_X;
Window_width=width;