[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src palm.h,1.29,1.30 palmgfx.cpp,1.1,1.2

Max Horn fingolfin at users.sourceforge.net
Fri Sep 3 18:32:46 CEST 2004


Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10785/backends/PalmOS/Src

Modified Files:
	palm.h palmgfx.cpp 
Log Message:
Got rid of OSystem::move_screen

Index: palm.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/palm.h,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- palm.h	25 May 2004 14:33:44 -0000	1.29
+++ palm.h	4 Sep 2004 01:30:57 -0000	1.30
@@ -74,10 +74,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();
 

Index: palmgfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/palmgfx.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- palmgfx.cpp	25 May 2004 14:33:45 -0000	1.1
+++ palmgfx.cpp	4 Sep 2004 01:30:59 -0000	1.2
@@ -583,65 +583,6 @@
 	((this)->*(_renderer_proc))();
 }
 
-void OSystem_PALMOS::move_screen(int dx, int dy, int height) {
-	// Short circuit check - do we have to do anything anyway?
-	if ((dx == 0 && dy == 0) || height <= 0)
-		return;
-
-	// Hide the mouse
-	if (_mouseDrawn)
-		undraw_mouse();
-
-	RectangleType r, dummy;
-	WinSetDrawWindow(_offScreenH);
-	RctSetRectangle(&r, ((_offScreenH != _screenH) ? 0 : _screenOffset.x), ((_offScreenH != _screenH) ? 0 : _screenOffset.y), _screenWidth, _screenHeight);
-
-	// vertical movement
-	if (dy > 0) {
-		// move down - copy from bottom to top
-		if (_useHRmode) {
-			// need to set the draw window
-			HRWinScrollRectangle(gVars->HRrefNum, &r, winDown, dy, &dummy);
-		} else {
-			WinScrollRectangle(&r, winDown, dy, &dummy);
-		}
-	} else if (dy < 0) {
-		// move up - copy from top to bottom
-		dy = -dy;
-		if (_useHRmode) {
-			// need to set the draw window
-			HRWinScrollRectangle(gVars->HRrefNum, &r, winUp, dy, &dummy);
-		} else {
-			WinScrollRectangle(&r, winUp, dy, &dummy);
-		}
-	}
-
-	// horizontal movement
-	if (dx > 0) {
-		// move right - copy from right to left
-		if (_useHRmode) {
-			// need to set the draw window
-			HRWinScrollRectangle(gVars->HRrefNum, &r, winRight, dx, &dummy);
-		} else {
-			WinScrollRectangle(&r, winRight, dx, &dummy);
-		}
-	} else if (dx < 0)  {
-		// move left - copy from left to right
-		dx = -dx;
-		if (_useHRmode) {
-			// need to set the draw window
-			HRWinScrollRectangle(gVars->HRrefNum, &r, winLeft, dx, &dummy);
-		} else {
-			WinScrollRectangle(&r, winLeft, dx, &dummy);
-		}
-	}
-
-
-	WinSetDrawWindow(_screenH);
-	// Prevent crash on Clie device using successive [HR]WinScrollRectangle !
-	SysTaskDelay(1);
-}
-
 void OSystem_PALMOS::draw1BitGfx(UInt16 id, Int32 x, Int32 y, Boolean show) {
 	if (OPTIONS_TST(kOptDisableOnScrDisp))
 		return;





More information about the Scummvm-git-logs mailing list