fix Open_popup() bug introduced in f9dc0358c4bfe2b4bcc1bb23ed3c437a32d78bec
This commit is contained in:
parent
24b197e6a6
commit
40dfa79612
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user