mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- let SBARINFO always read ST_X and ST_Y from the wrapper because it just too liberally changes these values in unpredictable ways.
This commit is contained in:
parent
6b95371813
commit
0a11e38967
1 changed files with 8 additions and 6 deletions
|
@ -1035,7 +1035,6 @@ public:
|
|||
{ // Calculate cleanX and cleanY
|
||||
wrapper->ScreenSizeChanged();
|
||||
}
|
||||
wrapper->GetCoords(ST_X, ST_Y);
|
||||
int hud = STBAR_NORMAL;
|
||||
if(state == HUD_StatusBar)
|
||||
{
|
||||
|
@ -1225,8 +1224,10 @@ public:
|
|||
if(!fullScreenOffsets)
|
||||
{
|
||||
double tmp = 0;
|
||||
dx += ST_X;
|
||||
dy += ST_Y - (Scaled ? script->resH : 200) + script->height;
|
||||
int stX, stY;
|
||||
wrapper->GetCoords(stX, stY);
|
||||
dx += stX;
|
||||
dy += stY - (Scaled ? script->resH : 200) + script->height;
|
||||
w = forceWidth < 0 ? texture->GetScaledWidthDouble() : forceWidth;
|
||||
h = forceHeight < 0 ? texture->GetScaledHeightDouble() : forceHeight;
|
||||
double dcx = clip[0] == 0 ? 0 : dx + clip[0] - texture->GetScaledLeftOffsetDouble();
|
||||
|
@ -1451,8 +1452,10 @@ public:
|
|||
|
||||
if(!fullScreenOffsets)
|
||||
{
|
||||
rx += ST_X;
|
||||
ry += ST_Y - (Scaled ? script->resH : 200) + script->height;
|
||||
int stX, stY;
|
||||
wrapper->GetCoords(stX, stY);
|
||||
rx += stX;
|
||||
ry += stY - (Scaled ? script->resH : 200) + script->height;
|
||||
if(Scaled)
|
||||
screen->VirtualToRealCoords(rx, ry, rw, rh, script->resW, script->resH, true);
|
||||
else
|
||||
|
@ -1520,7 +1523,6 @@ public:
|
|||
player_t *CPlayer = nullptr;
|
||||
DBaseStatusBar *wrapper;
|
||||
bool Scaled;
|
||||
int ST_X, ST_Y;
|
||||
|
||||
private:
|
||||
SBarInfo *script;
|
||||
|
|
Loading…
Reference in a new issue