- fixed centering of RR big text.

This commit is contained in:
Christoph Oelckers 2020-07-05 21:40:51 +02:00
parent 90d5d7ba75
commit 7bd2b33e39

View file

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