From 2f768387f3849699320229a5b756db78af1207a2 Mon Sep 17 00:00:00 2001 From: tobigun Date: Sun, 19 Oct 2008 16:24:59 +0000 Subject: The size given to TextGL.SetSize() now expresses the size in pixel (formerly it was 1/3 of the pixel-size). For theme and plugin compatibility the following functions multiply the size with 3: - UScreenSingModi.Print - TTheme.ThemeLoadText - TTheme.ThemeLoadSelectSlide TODO: Convert the themes/plugins and remove the "*3" git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1459 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/menu/UMenuText.pas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/menu/UMenuText.pas') diff --git a/src/menu/UMenuText.pas b/src/menu/UMenuText.pas index bc3d5ebd..1a7c15a1 100644 --- a/src/menu/UMenuText.pas +++ b/src/menu/UMenuText.pas @@ -328,12 +328,12 @@ begin glPrint(PChar(Text2)); {if Size >= 10 then - Y2 := Y2 + Size * 2.8 + Y2 := Y2 + Size * 0.93 else} if (Style = 1) then - Y2 := Y2 + Size * 2.8 + Y2 := Y2 + Size * 0.93 else - Y2 := Y2 + Size * 2.15; + Y2 := Y2 + Size * 0.72; end; SetFontStyle(0); // reset to default @@ -348,7 +348,7 @@ end; constructor TText.Create(X, Y: real; Tekst: string); begin - Create(X, Y, 0, 0, 10, 0, 0, 0, 0, Tekst, false, 0, 0); + Create(X, Y, 0, 0, 30, 0, 0, 0, 0, Tekst, false, 0, 0); end; constructor TText.Create(ParX, ParY, ParW: real; ParStyle: integer; ParSize, ParColR, ParColG, ParColB: real; ParAlign: integer; ParTekst: string; ParReflection: boolean; ParReflectionSpacing: real; ParZ:real); -- cgit v1.2.3