mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- fixed centering of RR big text.
This commit is contained in:
parent
90d5d7ba75
commit
7bd2b33e39
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ static void BigText(double x, double y, const char* text, int align, double alph
|
||||||
{
|
{
|
||||||
//x *= 2.2; y *= 2.64;
|
//x *= 2.2; y *= 2.64;
|
||||||
if (align != -1)
|
if (align != -1)
|
||||||
x -= BigFont->StringWidth(text) * (align == 0 ? 0.5 : 1);
|
x -= BigFont->StringWidth(text) * (align == 0 ? 0.2 : 0.4);
|
||||||
auto width = BigFont->StringWidth(text);
|
auto width = BigFont->StringWidth(text);
|
||||||
DrawText(twod, BigFont, CR_UNTRANSLATED, x, y - 12, text, DTA_FullscreenScale, 3, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200, DTA_ScaleX, 0.4, DTA_ScaleY, 0.4, DTA_Alpha, alpha, TAG_DONE);
|
DrawText(twod, BigFont, CR_UNTRANSLATED, x, y - 12, text, DTA_FullscreenScale, 3, DTA_VirtualWidth, 320, DTA_VirtualHeight, 200, DTA_ScaleX, 0.4, DTA_ScaleY, 0.4, DTA_Alpha, alpha, TAG_DONE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue