Bug 677699 - TiledTextureImage::GetTileRect() computes the wrong offset; r=heeen
authorBenoit Girard <b56girard@gmail.com>
Tue, 09 Aug 2011 14:41:27 -0700
changeset 74157 6e1f4b92757557a236b1df3a8622f63d770ef9f9
parent 74156 fc45c323637004066faedfa85592c97b5c44a679
child 74158 a0f38e290e33320a7c447c7e1905959ff088481f
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
reviewersheeen
bugs677699
milestone8.0a1
Bug 677699 - TiledTextureImage::GetTileRect() computes the wrong offset; r=heeen
gfx/thebes/GLContext.cpp
--- a/gfx/thebes/GLContext.cpp
+++ b/gfx/thebes/GLContext.cpp
@@ -856,17 +856,17 @@ PRBool TiledTextureImage::NextTile()
     return PR_FALSE;
 }
 
 nsIntRect TiledTextureImage::GetTileRect()
 {
     nsIntRect rect = mImages[mCurrentImage]->GetTileRect();
     unsigned int xPos = (mCurrentImage % mColumns) * mTileSize;
     unsigned int yPos = (mCurrentImage / mColumns) * mTileSize;
-    rect.MoveTo(xPos, yPos);
+    rect.MoveBy(xPos, yPos);
     return rect;
 }
 
 void
 TiledTextureImage::BindTexture(GLenum aTextureUnit)
 {
     mImages[mCurrentImage]->BindTexture(aTextureUnit);
 }