- Fixed: Regression with centered coordinates.

This commit is contained in:
Braden Obrzut 2015-01-26 15:00:36 -05:00
parent a4c07a9ee3
commit 72506fa6e9

View file

@ -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);