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/base/ULyrics.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/base/ULyrics.pas') diff --git a/src/base/ULyrics.pas b/src/base/ULyrics.pas index ece9f1d4..5c5449b1 100644 --- a/src/base/ULyrics.pas +++ b/src/base/ULyrics.pas @@ -463,7 +463,7 @@ begin // set font size to a reasonable value LyricLine.Height := RequestHeight * 0.9; - SetFontSize(LyricLine.Height/3); + SetFontSize(LyricLine.Height); LyricLine.Width := glTextWidth(PChar(LyricLine.Text)); // change font-size to fit into the lyric bar @@ -474,7 +474,7 @@ begin if (LyricLine.Height < 1) then LyricLine.Height := 1; - SetFontSize(LyricLine.Height/3); + SetFontSize(LyricLine.Height); LyricLine.Width := glTextWidth(PChar(LyricLine.Text)); end; @@ -539,7 +539,7 @@ begin // set font size and style SetFontStyle(FontStyle); ResetFont(); - SetFontSize(Line.Height/3); + SetFontSize(Line.Height); glColor4f(1, 1, 1, 1); // center lyrics -- cgit v1.2.3