From: Ivan Hernanez Date: Mon, 28 May 2012 04:58:08 +0000 (-0500) Subject: fixed scale X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=059cd146fef87735bda84ce7bb987e6ac5b2289b;p=IvanGame.git fixed scale --- 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 );