From 059cd146fef87735bda84ce7bb987e6ac5b2289b Mon Sep 17 00:00:00 2001 From: Ivan Hernanez Date: Sun, 27 May 2012 23:58:08 -0500 Subject: [PATCH] fixed scale --- Sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sprite.cpp b/Sprite.cpp index 3d15232..aad2f4e 100644 --- a/Sprite.cpp +++ b/Sprite.cpp @@ -49,7 +49,7 @@ void Sprite::draw() glTranslated(mPos.x,mPos.y,0);//move to position glTranslated(frame->animationPeg.x,frame->animationPeg.y,0);//move back to where it was glRotatef(mAngle,0.0f,0.0f,1.0f);//rotate shape - glScaled(mScale); + glScaled(mScale, mScale, mScale); glTranslated(-frame->animationPeg.x,-frame->animationPeg.y,0);//place animation peg on origin glBindTexture(GL_TEXTURE_2D, frame->image); glBegin( GL_QUADS ); -- 2.11.0