From 4bd05071e511c077811040c7c746d1c5f8e8c3f8 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 4 Sep 2004 01:31:04 +0000 Subject: Got rid of OSystem::move_screen svn-id: r14882 --- backends/dc/dc.h | 1 - backends/dc/display.cpp | 40 ---------------------------------------- 2 files changed, 41 deletions(-) (limited to 'backends/dc') 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; -- cgit v1.2.3