зеркало из https://github.com/mozilla/gecko-dev.git
Bug 677699 - TiledTextureImage::GetTileRect() computes the wrong offset; r=heeen
--HG-- extra : rebase_source : 01fb1f2f4044332f2d15fc197a573c40b59f2e10
This commit is contained in:
Родитель
7cb05cae9b
Коммит
20558ca924
|
@ -861,7 +861,7 @@ 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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче