From 4d300a0b6d5b074fcea0a1cf9b04f180782aa1c1 Mon Sep 17 00:00:00 2001 From: mogguh Date: Sat, 21 Jul 2007 16:30:37 +0000 Subject: Timeprogressbar in singscreen has the new tile capability (8x8 px) Fixed a minor texture bug too New kinkier dx skin parts will arrive in the svn soon too git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@312 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/UDraw.pas | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Game/Code/Classes/UDraw.pas b/Game/Code/Classes/UDraw.pas index df729bd4..d9582aee 100644 --- a/Game/Code/Classes/UDraw.pas +++ b/Game/Code/Classes/UDraw.pas @@ -1646,20 +1646,22 @@ begin width:= Theme.Sing.StaticTimeProgress.w; height:= Theme.Sing.StaticTimeProgress.h; - glColor4f(Theme.Sing.StaticTimeProgress.ColR, - Theme.Sing.StaticTimeProgress.ColG, - Theme.Sing.StaticTimeProgress.ColB, 1); //Set Color + // glColor4f(Theme.Sing.StaticTimeProgress.ColR, + // Theme.Sing.StaticTimeProgress.ColG, + // Theme.Sing.StaticTimeProgress.ColB, 1); //Set Color glEnable(GL_TEXTURE_2D); glEnable(GL_BLEND); glBindTexture(GL_TEXTURE_2D, Tex_TimeProgress.TexNum); - +// glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT ); + // glBindTexture(GL_TEXTURE_2D, Tex_Lyric_Help_Bar.TexNum); + glBegin(GL_QUADS); glTexCoord2f(0, 0); glVertex2f(x,y); - glTexCoord2f(0, 1); glVertex2f(x+width*(Czas.Teraz/Czas.Razem), y); + glTexCoord2f(1, 0); glVertex2f(x+width*(Czas.Teraz/Czas.Razem), y); glTexCoord2f(1, 1); glVertex2f(x+width*(Czas.Teraz/Czas.Razem), y+height); - glTexCoord2f(1, 0); glVertex2f(x, y+height); + glTexCoord2f(0, 1); glVertex2f(x, y+height); glEnd; glDisable(GL_TEXTURE_2D); -- cgit v1.2.3