aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
authorjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-03-04 02:11:36 +0000
committerjaybinks <jaybinks@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-03-04 02:11:36 +0000
commit1d1b3b37b1aa462c33be8124a1947b8ea237c73b (patch)
tree82c9f7a87be50ff025112068f7264839bcac8d91 /Game/Code
parentddf0dc62ba1e3bd772e8155d295ddb3487d5d305 (diff)
downloadusdx-1d1b3b37b1aa462c33be8124a1947b8ea237c73b.tar.gz
usdx-1d1b3b37b1aa462c33be8124a1947b8ea237c73b.tar.xz
usdx-1d1b3b37b1aa462c33be8124a1947b8ea237c73b.zip
Patch from AlexanderS
fixed bug with incorrect Lyric Slicing git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@903 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/TextGL.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/Game/Code/Classes/TextGL.pas b/Game/Code/Classes/TextGL.pas
index 2cb9dfdf..f6c04b3a 100644
--- a/Game/Code/Classes/TextGL.pas
+++ b/Game/Code/Classes/TextGL.pas
@@ -205,7 +205,7 @@ var
begin
// Log.LogStatus(Text, 'glTextWidth');
Result := 0;
- for i := 0 to Length(text) do
+ for i := 0 to Length(text) -1 do // Patched by AlexanderS : bug with wrong sliced text lines
begin
Letter := Text[i];
// Bugfix: does not work with FPC, probably because a part of text is assigned to itself