From 87479d3c2fce507dbfe7fc2fbb0b75a0783eb9d5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 29 Mar 2017 14:28:46 +0200 Subject: [PATCH] -use the proper functions to calculate the position of the popup screen in Strife. --- wadsrc/static/zscript/statusbar/strife_sbar.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/statusbar/strife_sbar.txt b/wadsrc/static/zscript/statusbar/strife_sbar.txt index 044d49a1c..78084dbc6 100644 --- a/wadsrc/static/zscript/statusbar/strife_sbar.txt +++ b/wadsrc/static/zscript/statusbar/strife_sbar.txt @@ -264,7 +264,9 @@ class StrifeStatusBar : BaseStatusBar // Pop screen (log, keys, and status) if (CurrentPop != POP_None && PopHeight < 0) { - DrawPopScreen (Scaled ? (ST_Y - 8) * screen.GetHeight() / 200 : ST_Y - 8, TicFrac); + double tmp, h; + [tmp, tmp, h] = StatusbarToRealCoords(0, 0, 8); + DrawPopScreen (GetTopOfStatusBar() - h, TicFrac); } DrawImage("INVBACK", (0, 168), DI_ITEM_OFFSETS);