AGS: Minor cleaning to match upstream code

This commit is contained in:
Thierry Crozat 2021-04-13 22:59:13 +01:00
parent 02c7775465
commit 31871e4730

View File

@ -562,16 +562,15 @@ void DialogOptions::Show() {
}
} else {
//dlgyp=(_GP(play).viewport.GetHeight()-numdisp*txthit)-1;
const Rect &uiView = _GP(play).GetUIViewport();
areawid = uiView.GetWidth() - 5;
areawid = ui_view.GetWidth() - 5;
padding = TEXTWINDOW_PADDING_DEFAULT;
GET_OPTIONS_HEIGHT
dlgyp = uiView.GetHeight() - needheight;
dlgyp = ui_view.GetHeight() - needheight;
dirtyx = 0;
dirtyy = dlgyp - 1;
dirtywidth = uiView.GetWidth();
dirtyheight = uiView.GetHeight() - dirtyy;
dirtywidth = ui_view.GetWidth();
dirtyheight = ui_view.GetHeight() - dirtyy;
dialog_abs_x = 0;
}
if (!is_textwindow)