aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/UThemes.pas
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-10-19 16:24:59 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-10-19 16:24:59 +0000
commit2f768387f3849699320229a5b756db78af1207a2 (patch)
treee39161fd1ba290e78ded030323d7a07c4272abab /src/base/UThemes.pas
parentaf9523c588b9440880e2d1bebe0cf79235cc4d59 (diff)
downloadusdx-2f768387f3849699320229a5b756db78af1207a2.tar.gz
usdx-2f768387f3849699320229a5b756db78af1207a2.tar.xz
usdx-2f768387f3849699320229a5b756db78af1207a2.zip
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
Diffstat (limited to 'src/base/UThemes.pas')
-rw-r--r--src/base/UThemes.pas6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/base/UThemes.pas b/src/base/UThemes.pas
index 745a5d9b..02fdf10a 100644
--- a/src/base/UThemes.pas
+++ b/src/base/UThemes.pas
@@ -1526,7 +1526,8 @@ begin
ThemeText.ColB := ThemeIni.ReadFloat(Name, 'ColB', 0);
ThemeText.Font := ThemeIni.ReadInteger(Name, 'Font', 0);
- ThemeText.Size := ThemeIni.ReadInteger(Name, 'Size', 0);
+ // FIXME: FONTSIZE
+ ThemeText.Size := ThemeIni.ReadInteger(Name, 'Size', 0) * 3;
ThemeText.Align := ThemeIni.ReadInteger(Name, 'Align', 0);
ThemeText.Text := Language.Translate(ThemeIni.ReadString(Name, 'Text', ''));
@@ -1739,7 +1740,8 @@ begin
ThemeSelectS.Z := ThemeIni.ReadFloat(Name, 'Z', 0);
- ThemeSelectS.TextSize := ThemeIni.ReadInteger(Name, 'TextSize', 10);
+ // FIXME: FONTSIZE
+ ThemeSelectS.TextSize := ThemeIni.ReadInteger(Name, 'TextSize', 10) * 3;
ThemeSelectS.SkipX := ThemeIni.ReadInteger(Name, 'SkipX', 0);