[Scummvm-cvs-logs] CVS: scummvm/backends/morphos morphos.cpp,1.37,1.38 morphos.h,1.24,1.25

Max Horn fingolfin at users.sourceforge.net
Sun Mar 28 08:43:25 CEST 2004


Update of /cvsroot/scummvm/scummvm/backends/morphos
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15464/backends/morphos

Modified Files:
	morphos.cpp morphos.h 
Log Message:
Renamed more OSystem methods

Index: morphos.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/morphos/morphos.cpp,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- morphos.cpp	15 Mar 2004 01:18:37 -0000	1.37
+++ morphos.cpp	28 Mar 2004 16:30:47 -0000	1.38
@@ -969,7 +969,7 @@
 	return false;
 }
 
-void OSystem_MorphOS::warp_mouse(int x, int y)
+void OSystem_MorphOS::warpMouse(int x, int y)
 {
 	if (InputIORequest)
 	{
@@ -1017,7 +1017,7 @@
 		(MouseOldY+MouseOldHeight <= y) || (MouseOldY >= y+h)))
 
 /* Copy part of bitmap */
-void OSystem_MorphOS::copy_rect(const byte *src, int pitch, int x, int y, int w, int h)
+void OSystem_MorphOS::copyRectToScreen(const byte *src, int pitch, int x, int y, int w, int h)
 {
 	byte *dst;
 
@@ -1119,13 +1119,13 @@
 		// move down
 		// copy from bottom to top
 		for (int y = height - 1; y >= dy; y--)
-			copy_rect((byte *)ScummBuffer + ScummBufferWidth * (y - dy), ScummBufferWidth, 0, y, ScummBufferWidth, 1);
+			copyRectToScreen((byte *)ScummBuffer + ScummBufferWidth * (y - dy), ScummBufferWidth, 0, y, ScummBufferWidth, 1);
 	} else if (dy < 0) {
 		// move up
 		// copy from top to bottom
 		dy = -dy;
 		for (int y = dy; y < height; y++)
-			copy_rect((byte *)ScummBuffer + ScummBufferWidth * y, ScummBufferWidth, 0, y - dy, ScummBufferWidth, 1);
+			copyRectToScreen((byte *)ScummBuffer + ScummBufferWidth * y, ScummBufferWidth, 0, y - dy, ScummBufferWidth, 1);
 	}
 
 	// horizontal movement
@@ -1133,13 +1133,13 @@
 		// move right
 		// copy from right to left
 		for (int x = ScummBufferWidth - 1; x >= dx; x--)
-			copy_rect((byte *)ScummBuffer + x - dx, ScummBufferWidth, x, 0, 1, height);
+			copyRectToScreen((byte *)ScummBuffer + x - dx, ScummBufferWidth, x, 0, 1, height);
 	} else if (dx < 0) {
 		// move left
 		// copy from left to right
 		dx = -dx;
 		for (int x = dx; x < ScummBufferWidth; x++)
-			copy_rect((byte *)ScummBuffer + x, ScummBufferWidth, x, 0, 1, height);
+			copyRectToScreen((byte *)ScummBuffer + x, ScummBufferWidth, x, 0, 1, height);
 	}
 }
 
@@ -1399,7 +1399,7 @@
 	}
 }
 
-bool OSystem_MorphOS::show_mouse(bool visible)
+bool OSystem_MorphOS::showMouse(bool visible)
 {
 	if (MouseVisible == visible)
 		return visible;
@@ -1423,7 +1423,7 @@
 	}
 }
 
-void OSystem_MorphOS::set_mouse_cursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y)
+void OSystem_MorphOS::setMouseCursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y)
 {
 	MouseWidth = w;
 	MouseHeight	= h;
@@ -1577,11 +1577,11 @@
 	return ScummScrHeight;
 }
 
-void OSystem_MorphOS::show_overlay()
+void OSystem_MorphOS::showOverlay()
 {
 	UndrawMouse();
 	memcpy(OvlSavedBuffer, ScummBuffer, ScummBufferWidth*ScummBufferHeight);
-	clear_overlay();
+	clearOverlay();
 	for (int c = 0; c < 256; c++)
 	{
 		ULONG r, g, b;
@@ -1592,18 +1592,18 @@
 	}
 }
 
-void OSystem_MorphOS::hide_overlay()
+void OSystem_MorphOS::hideOverlay()
 {
-	copy_rect((byte *) OvlSavedBuffer, ScummBufferWidth, 0, 0, ScummBufferWidth, ScummBufferHeight);
+	copyRectToScreen((byte *) OvlSavedBuffer, ScummBufferWidth, 0, 0, ScummBufferWidth, ScummBufferHeight);
 }
 
-void OSystem_MorphOS::clear_overlay()
+void OSystem_MorphOS::clearOverlay()
 {
 	AUTO_LOCK
 
 	UBYTE *src = (UBYTE *) ScummBuffer;
 	UBYTE *dest = (UBYTE *) OvlBitMap;
-	copy_rect((byte *) OvlSavedBuffer, ScummBufferWidth, 0, 0, ScummBufferWidth, ScummBufferHeight);
+	copyRectToScreen((byte *) OvlSavedBuffer, ScummBufferWidth, 0, 0, ScummBufferWidth, ScummBufferHeight);
 	for (int y = 0; y < ScummBufferHeight; y++)
 		for (int x = 0; x < ScummBufferWidth; x++)
 		{
@@ -1613,7 +1613,7 @@
 		}
 }
 
-void OSystem_MorphOS::grab_overlay(int16 *buf, int pitch)
+void OSystem_MorphOS::grabOverlay(int16 *buf, int pitch)
 {
 	int h = ScummBufferHeight;
 	int x;
@@ -1630,7 +1630,7 @@
 	} while (--h);
 }
 
-void OSystem_MorphOS::copy_rect_overlay(const int16 *ovl, int pitch, int x, int y, int w, int h)
+void OSystem_MorphOS::copyRectToOverlay(const int16 *ovl, int pitch, int x, int y, int w, int h)
 {
 	int x1, y1;
 	UBYTE *dest;
@@ -1672,7 +1672,7 @@
 			dest += (ScummBufferWidth-w)*3;
 			ovl += pitch-w;
 		}
-		copy_rect(bmap, w, x, y, w, h);
+		copyRectToScreen(bmap, w, x, y, w, h);
 		FreeVec(bmap);
 	}
 }

Index: morphos.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/morphos/morphos.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- morphos.h	15 Mar 2004 01:18:37 -0000	1.24
+++ morphos.h	28 Mar 2004 16:30:47 -0000	1.25
@@ -51,30 +51,30 @@
 
 		// Draw a bitmap to screen.
 		// The screen will not be updated to reflect the new bitmap
-		virtual void copy_rect(const byte *buf, int pitch, int x, int y, int w, int h);
+		virtual 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
 		virtual void updateScreen();
 
 		// Either show or hide the mouse cursor
-		virtual bool show_mouse(bool visible);
+		virtual bool showMouse(bool visible);
 
 		// Set the position of the mouse cursor
 		virtual void set_mouse_pos(int x, int y);
 
 		// Set the bitmap that's used when drawing the cursor.
-		virtual void set_mouse_cursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y);
+		virtual void setMouseCursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y);
 
 		// Shaking is used in SCUMM. Set current shake position.
 		virtual void set_shake_pos(int shake_pos);
 
 		// Overlay
-		virtual void show_overlay();
-		virtual void hide_overlay();
-		virtual void clear_overlay();
-		virtual void grab_overlay(int16 *buf, int pitch);
-		virtual void copy_rect_overlay(const int16 *buf, int pitch, int x, int y, int w, int h);
+		virtual void showOverlay();
+		virtual void hideOverlay();
+		virtual void clearOverlay();
+		virtual void grabOverlay(int16 *buf, int pitch);
+		virtual void copyRectToOverlay(const int16 *buf, int pitch, int x, int y, int w, int h);
 		virtual int16 getHeight();
 		virtual int16 getWidth();
 
@@ -98,7 +98,7 @@
 		virtual bool poll_event(Event *event);
 
 		// Moves mouse pointer to specified position
-		virtual void warp_mouse(int x, int y);
+		virtual void warpMouse(int x, int y);
 
 		// Set the function to be invoked whenever samples need to be generated
 		virtual bool setSoundCallback(SoundProc proc, void *param);





More information about the Scummvm-git-logs mailing list