[Scummvm-cvs-logs] CVS: scummvm/backends/dc dc.h,1.32,1.33 display.cpp,1.26,1.27
Max Horn
fingolfin at users.sourceforge.net
Fri Sep 3 18:32:58 CEST 2004
Update of /cvsroot/scummvm/scummvm/backends/dc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10785/backends/dc
Modified Files:
dc.h display.cpp
Log Message:
Got rid of OSystem::move_screen
Index: dc.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/dc/dc.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- dc.h 6 May 2004 09:20:07 -0000 1.32
+++ dc.h 4 Sep 2004 01:30:59 -0000 1.33
@@ -73,7 +73,6 @@
// 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();
Index: display.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/dc/display.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- display.cpp 29 Aug 2004 19:42:27 -0000 1.26
+++ display.cpp 4 Sep 2004 01:30:59 -0000 1.27
@@ -206,46 +206,6 @@
_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;
More information about the Scummvm-git-logs
mailing list