mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-11 05:01:09 +00:00
- Fixed: Regression with centered coordinates.
This commit is contained in:
parent
a4c07a9ee3
commit
72506fa6e9
1 changed files with 2 additions and 2 deletions
|
@ -1280,8 +1280,8 @@ public:
|
||||||
|
|
||||||
// We can't use DTA_HUDRules since it forces a width and height.
|
// We can't use DTA_HUDRules since it forces a width and height.
|
||||||
// Translation: No high res.
|
// Translation: No high res.
|
||||||
bool xright = *x < 0;
|
bool xright = *x < 0 && !x.RelCenter();
|
||||||
bool ybot = *y < 0;
|
bool ybot = *y < 0 && !y.RelCenter();
|
||||||
|
|
||||||
w = (forceWidth < 0 ? texture->GetScaledWidthDouble() : forceWidth);
|
w = (forceWidth < 0 ? texture->GetScaledWidthDouble() : forceWidth);
|
||||||
h = (forceHeight < 0 ? texture->GetScaledHeightDouble() : forceHeight);
|
h = (forceHeight < 0 ? texture->GetScaledHeightDouble() : forceHeight);
|
||||||
|
|
Loading…
Reference in a new issue