diff options
Diffstat (limited to 'engines/kyra/screen.cpp')
-rw-r--r-- | engines/kyra/screen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index c5cd09756f..546ab6f6a5 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -589,7 +589,7 @@ void Screen::copyRegionToBuffer(int pageNum, int x, int y, int w, int h, uint8 * if (x < 0) { dest += -x; - w += x; + w += x; x = 0; } else if (x + w > SCREEN_W) { w = SCREEN_W - x; @@ -627,7 +627,7 @@ void Screen::copyBlockToPage(int pageNum, int x, int y, int w, int h, const uint if (x < 0) { src += -x; - w += x; + w += x; x = 0; } else if (x + w > SCREEN_W) { w = SCREEN_W - x; |