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/morphos.cpp | |
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/morphos.cpp')
-rw-r--r-- | backends/morphos/morphos.cpp | 42 |
1 files changed, 0 insertions, 42 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) |