aboutsummaryrefslogtreecommitdiff
path: root/backends/dc
diff options
context:
space:
mode:
authorMax Horn2004-09-04 01:31:04 +0000
committerMax Horn2004-09-04 01:31:04 +0000
commit4bd05071e511c077811040c7c746d1c5f8e8c3f8 (patch)
tree15ddd6e0ab7b7474668ea07bca628ddbd4efa8a4 /backends/dc
parentb086ee7f67b7de4d218ff1e4862271d9e921ba9c (diff)
downloadscummvm-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/dc')
-rw-r--r--backends/dc/dc.h1
-rw-r--r--backends/dc/display.cpp40
2 files changed, 0 insertions, 41 deletions
diff --git a/backends/dc/dc.h b/backends/dc/dc.h
index 490a97ffea..3f40f8667d 100644
--- a/backends/dc/dc.h
+++ b/backends/dc/dc.h
@@ -73,7 +73,6 @@ class OSystem_Dreamcast : public OSystem {
// Draw a bitmap to screen.
// The screen will not be updated to reflect the new bitmap
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
void updateScreen();
diff --git a/backends/dc/display.cpp b/backends/dc/display.cpp
index 97bf65be93..2e46967dea 100644
--- a/backends/dc/display.cpp
+++ b/backends/dc/display.cpp
@@ -206,46 +206,6 @@ void OSystem_Dreamcast::copyRectToScreen(const byte *buf, int pitch, int x, int
_screen_dirty = true;
}
-void OSystem_Dreamcast::move_screen(int dx, int dy, int height) {
-
- if ((dx == 0) && (dy == 0))
- return;
-
- if (dx == 0) {
- // vertical movement
- if (dy > 0) {
- // move down
- // copy from bottom to top
- for (int y = height - 1; y >= dy; y--)
- copyRectToScreen(screen + SCREEN_W * (y - dy), SCREEN_W, 0, y, _screen_w, 1);
- } else {
- // move up
- // copy from top to bottom
- for (int y = 0; y < height + dx; y++)
- copyRectToScreen(screen + SCREEN_W * (y - dy), SCREEN_W, 0, y, _screen_w, 1);
- }
- } else if (dy == 0) {
- // horizontal movement
- if (dx > 0) {
- // move right
- // copy from right to left
- for (int x = _screen_w - 1; x >= dx; x--)
- copyRectToScreen(screen + x - dx, SCREEN_W, x, 0, 1, height);
- } else {
- // move left
- // copy from left to right
- for (int x = 0; x < _screen_w; x++)
- copyRectToScreen(screen + x - dx, SCREEN_W, x, 0, 1, height);
- }
- } else {
- // free movement
- // not necessary for now
- }
-
- _screen_dirty = true;
-}
-
-
bool OSystem_Dreamcast::showMouse(bool visible)
{
bool last = _ms_visible;