From 387b4c33f903fd1bda63557669ea3b93717d9d37 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 7 Dec 2018 18:35:33 +0100 Subject: [PATCH] fix Open_popup() once again. This time its OK when Menu_factor_Y != 1 --- src/engine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine.c b/src/engine.c index 64ea4bb3..9bb34e06 100644 --- a/src/engine.c +++ b/src/engine.c @@ -2353,8 +2353,8 @@ void Open_popup(word x_pos, word y_pos, word width,word height) if (height*Menu_factor_Y > Screen_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/Menu_factor_Y - height; + 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; Window_width=width; Window_height=height;