diff options
author | b1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-07-22 14:07:29 +0000 |
---|---|---|
committer | b1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-07-22 14:07:29 +0000 |
commit | b9f7f03201214e97feebb101e3e2c0fd257353fc (patch) | |
tree | 87e1bdac118e72d674b1633d052274bed2cf8ac7 /Game | |
parent | e82d6d67a61bc5437074e9fe20a35d2c3945e6ab (diff) | |
download | usdx-b9f7f03201214e97feebb101e3e2c0fd257353fc.tar.gz usdx-b9f7f03201214e97feebb101e3e2c0fd257353fc.tar.xz usdx-b9f7f03201214e97feebb101e3e2c0fd257353fc.zip |
fixed a minor bug in the reflection code that caused some reflections to be incorrectly drawn
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@316 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game')
-rw-r--r-- | Game/Code/Menu/UMenuStatic.pas | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Game/Code/Menu/UMenuStatic.pas b/Game/Code/Menu/UMenuStatic.pas index 2a5e1e93..41d5046f 100644 --- a/Game/Code/Menu/UMenuStatic.pas +++ b/Game/Code/Menu/UMenuStatic.pas @@ -52,13 +52,13 @@ begin //Bottom Left
glColor4f(ColR * Int, ColG * Int, ColB * Int, 0);
- glTexCoord2f(TexX1*TexW, 0.5);
+ glTexCoord2f(TexX1*TexW, 0.5*TexH);
glVertex3f(x, y+h*scaleH + h*scaleH/2 + Reflectionspacing, z);
//Bottom Right
glColor4f(ColR * Int, ColG * Int, ColB * Int, 0);
- glTexCoord2f(TexX2*TexW, 0.5);
+ glTexCoord2f(TexX2*TexW, 0.5*TexH);
glVertex3f(x+w*scaleW, y+h*scaleH + h*scaleH/2 + Reflectionspacing, z);
//Top Right
@@ -68,7 +68,7 @@ begin glEnd;
glDisable(GL_TEXTURE_2D);
- glDisable(GL_DEPTH_TEST);
+ glDisable(GL_DEPTH_TEST);
glDisable(GL_BLEND);
end;
end;
|