[Scummvm-cvs-logs] CVS: scummvm/backends/gp32 gp32.cpp,1.20,1.21 gp32.h,1.21,1.22
Max Horn
fingolfin at users.sourceforge.net
Fri Sep 3 18:32:48 CEST 2004
Update of /cvsroot/scummvm/scummvm/backends/gp32
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10785/backends/gp32
Modified Files:
gp32.cpp gp32.h
Log Message:
Got rid of OSystem::move_screen
Index: gp32.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/gp32/gp32.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- gp32.cpp 5 May 2004 02:30:13 -0000 1.20
+++ gp32.cpp 4 Sep 2004 01:31:00 -0000 1.21
@@ -350,44 +350,6 @@
return 1;
}
-// Moves the screen content around by the given amount of pixels
-// but only the top height pixel rows, the rest stays untouched
-void OSystem_GP32::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((byte *)_screen->pixels + _screenWidth * (y - dy), _screenWidth, 0, y, _screenWidth, 1);
- } else {
- // move up
- // copy from top to bottom
- for (int y = 0; y < height + dx; y++)
- copyRectToScreen((byte *)_screen->pixels + _screenWidth * (y - dy), _screenWidth, 0, y, _screenWidth, 1);
- }
- } else if (dy == 0) {
- // horizontal movement
- if (dx > 0) {
- // move right
- // copy from right to left
- for (int x = _screenWidth - 1; x >= dx; x--)
- copyRectToScreen((byte *)_screen->pixels + x - dx, _screenWidth, x, 0, 1, height);
- } else {
- // move left
- // copy from left to right
- for (int x = 0; x < _screenWidth; x++)
- copyRectToScreen((byte *)_screen->pixels + x - dx, _screenWidth, x, 0, 1, height);
- }
- } else {
- // free movement
- // not necessary for now
- }
-}
-
void OSystem_GP32::load_gfx_mode() {
GpRectFill(NULL,&gpDraw[GAME_SURFACE], 0, 0, 320, 240, 0); //black border
Index: gp32.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/gp32/gp32.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- gp32.h 6 May 2004 09:20:19 -0000 1.21
+++ gp32.h 4 Sep 2004 01:31:00 -0000 1.22
@@ -47,10 +47,6 @@
// 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);
- // Moves the screen content around by the given amount of pixels
- // but only the top height pixel rows, the rest stays untouched
- void move_screen(int dx, int dy, int height);
-
// Update the dirty areas of the screen
void updateScreen();
More information about the Scummvm-git-logs
mailing list