Skip to content

Commit

Permalink
TONY: Fix width of flipped dirty rects.
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzie committed Aug 27, 2012
1 parent addca5d commit 037920b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/tony/gfxcore.cpp
Expand Up @@ -931,7 +931,7 @@ void RMGfxSourceBuffer8RLE::draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPri
width = x1;

// Specify the drawn area
bigBuf.addDirtyRect(Common::Rect(x1 - width, y1, x1, y1 + height));
bigBuf.addDirtyRect(Common::Rect(x1 - width, y1, x1 + 1, y1 + height));

for (y = 0; y < height; y++) {
// Decompression
Expand Down Expand Up @@ -1725,7 +1725,7 @@ void RMGfxSourceBuffer8AA::drawAA(RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *pri
width = x1;

// Specify the drawn area
bigBuf.addDirtyRect(Common::Rect(x1 - width, y1, x1, y1 + height));
bigBuf.addDirtyRect(Common::Rect(x1 - width, y1, x1 + 1, y1 + height));
} else {
// Specify the drawn area
bigBuf.addDirtyRect(Common::Rect(x1, y1, x1 + width, y1 + height));
Expand Down

0 comments on commit 037920b

Please sign in to comment.