diff options
author | Max Horn | 2004-09-04 01:31:04 +0000 |
---|---|---|
committer | Max Horn | 2004-09-04 01:31:04 +0000 |
commit | 4bd05071e511c077811040c7c746d1c5f8e8c3f8 (patch) | |
tree | 15ddd6e0ab7b7474668ea07bca628ddbd4efa8a4 /backends/morphos | |
parent | b086ee7f67b7de4d218ff1e4862271d9e921ba9c (diff) | |
download | scummvm-rg350-4bd05071e511c077811040c7c746d1c5f8e8c3f8.tar.gz scummvm-rg350-4bd05071e511c077811040c7c746d1c5f8e8c3f8.tar.bz2 scummvm-rg350-4bd05071e511c077811040c7c746d1c5f8e8c3f8.zip |
Got rid of OSystem::move_screen
svn-id: r14882
Diffstat (limited to 'backends/morphos')
-rw-r--r-- | backends/morphos/morphos.cpp | 42 | ||||
-rw-r--r-- | backends/morphos/morphos.h | 1 |
2 files changed, 0 insertions, 43 deletions
diff --git a/backends/morphos/morphos.cpp b/backends/morphos/morphos.cpp index aea11d251b..0691963468 100644 --- a/backends/morphos/morphos.cpp +++ b/backends/morphos/morphos.cpp @@ -1103,48 +1103,6 @@ void OSystem_MorphOS::copyRectToScreen(const byte *src, int pitch, int x, int y, } } -void OSystem_MorphOS::move_screen(int dx, int dy, int height) { - - if ((dx == 0) && (dy == 0)) - return; - - UpdateRects = 26; - Rectangle update_rect = { 0, 0, ScummBufferWidth, ScummBufferHeight }; - OrRectRegion(NewUpdateRegion, &update_rect); - ScreenChanged = true; - - UndrawMouse(); - - // vertical movement - if (dy > 0) { - // move down - // copy from bottom to top - for (int y = height - 1; y >= dy; y--) - copyRectToScreen((byte *)ScummBuffer + ScummBufferWidth * (y - dy), ScummBufferWidth, 0, y, ScummBufferWidth, 1); - } else if (dy < 0) { - // move up - // copy from top to bottom - dy = -dy; - for (int y = dy; y < height; y++) - copyRectToScreen((byte *)ScummBuffer + ScummBufferWidth * y, ScummBufferWidth, 0, y - dy, ScummBufferWidth, 1); - } - - // horizontal movement - if (dx > 0) { - // move right - // copy from right to left - for (int x = ScummBufferWidth - 1; x >= dx; x--) - copyRectToScreen((byte *)ScummBuffer + x - dx, ScummBufferWidth, x, 0, 1, height); - } else if (dx < 0) { - // move left - // copy from left to right - dx = -dx; - for (int x = dx; x < ScummBufferWidth; x++) - copyRectToScreen((byte *)ScummBuffer + x, ScummBufferWidth, x, 0, 1, height); - } -} - - bool OSystem_MorphOS::AddUpdateRect(WORD x, WORD y, WORD w, WORD h) { if (UpdateRects > 25) diff --git a/backends/morphos/morphos.h b/backends/morphos/morphos.h index 7294f855ca..0279bc3517 100644 --- a/backends/morphos/morphos.h +++ b/backends/morphos/morphos.h @@ -52,7 +52,6 @@ class OSystem_MorphOS : public OSystem // Draw a bitmap to screen. // The screen will not be updated to reflect the new bitmap virtual void copyRectToScreen(const byte *buf, int pitch, int x, int y, int w, int h); - void move_screen(int dx, int dy, int height); // Update the dirty areas of the screen virtual void updateScreen(); |