aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Classes
diff options
context:
space:
mode:
authormogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-05-05 13:06:40 +0000
committermogguh <mogguh@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-05-05 13:06:40 +0000
commit42f4119fc2ac2a3eb3810d90ae9e2c3cfd1da80c (patch)
tree648e62dc6c09d6ac28fb18f5bc73eb09d4e6aa30 /Game/Code/Classes
parent808007e7eef95427292f9aa2bb63541ddef020ec (diff)
downloadusdx-42f4119fc2ac2a3eb3810d90ae9e2c3cfd1da80c.tar.gz
usdx-42f4119fc2ac2a3eb3810d90ae9e2c3cfd1da80c.tar.xz
usdx-42f4119fc2ac2a3eb3810d90ae9e2c3cfd1da80c.zip
text reflection -> renamed TestHeight to TexHeight
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1061 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Classes')
-rw-r--r--Game/Code/Classes/TextGL.pas8
1 files changed, 4 insertions, 4 deletions
diff --git a/Game/Code/Classes/TextGL.pas b/Game/Code/Classes/TextGL.pas
index e00388a4..949ad211 100644
--- a/Game/Code/Classes/TextGL.pas
+++ b/Game/Code/Classes/TextGL.pas
@@ -213,7 +213,7 @@ procedure glPrintLetter(Letter: char);
var
TexX, TexY: real;
TexR, TexB: real;
- TestHeight: real;
+ TexHeight: real;
FWidth: real;
PL, PT: real;
PR, PB: real;
@@ -232,7 +232,7 @@ begin
TexR := (ord(Letter) mod 16) * 1/16 + 1/32 + FWidth/1024 + Fonts[ActFont].Outline/1024;
TexB := (1 + ord(Letter) div 16) * 1/16 - 2/1024;
- TestHeight := TexB - TexY;
+ TexHeight := TexB - TexY;
// set vector positions
PL := X - Fonts[ActFont].Outline * (H/30) * Fonts[ActFont].AspectW /2;
@@ -274,7 +274,7 @@ begin
glBegin(GL_QUADS);
try
glColor4f(TempColor[0], TempColor[1], TempColor[2], 0);
- glTexCoord2f(TexX, TexY + TestHeight/2);
+ glTexCoord2f(TexX, TexY + TexHeight/2);
glVertex3f(PL, PB + ReflectionSpacing - H/2, z);
glColor4f(TempColor[0], TempColor[1], TempColor[2], Alpha-0.3);
@@ -285,7 +285,7 @@ begin
glVertex3f(PR + XItal, PT + ReflectionSpacing, z);
glColor4f(TempColor[0], TempColor[1], TempColor[2], 0);
- glTexCoord2f(TexR, TexY + TestHeight/2);
+ glTexCoord2f(TexR, TexY + TexHeight/2);
glVertex3f(PR, PB + ReflectionSpacing - H/2, z);
finally
glEnd;