fixed scale
authorIvan Hernanez <iturtleman128@gmail.com>
Mon, 28 May 2012 04:58:08 +0000 (23:58 -0500)
committerIvan Hernanez <iturtleman128@gmail.com>
Mon, 28 May 2012 04:58:08 +0000 (23:58 -0500)
Sprite.cpp

index 3d15232..aad2f4e 100644 (file)
@@ -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 );