[Scummvm-cvs-logs] CVS: scummvm/backends/sdl graphics.cpp,1.7,1.8 sdl-common.h,1.56,1.57

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


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

Modified Files:
	graphics.cpp sdl-common.h 
Log Message:
Renamed more OSystem methods

Index: graphics.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/graphics.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- graphics.cpp	21 Mar 2004 21:20:25 -0000	1.7
+++ graphics.cpp	28 Mar 2004 16:30:47 -0000	1.8
@@ -532,7 +532,7 @@
 	}
 }
 
-void OSystem_SDL::copy_rect(const byte *src, int pitch, int x, int y, int w, int h) {
+void OSystem_SDL::copyRectToScreen(const byte *src, int pitch, int x, int y, int w, int h) {
 	if (_screen == NULL)
 		return;
 
@@ -829,15 +829,15 @@
 #pragma mark --- Overlays ---
 #pragma mark -
 
-void OSystem_SDL::show_overlay() {
+void OSystem_SDL::showOverlay() {
 	// hide the mouse
 	undraw_mouse();
 
 	_overlayVisible = true;
-	clear_overlay();
+	clearOverlay();
 }
 
-void OSystem_SDL::hide_overlay() {
+void OSystem_SDL::hideOverlay() {
 	// hide the mouse
 	undraw_mouse();
 
@@ -845,7 +845,7 @@
 	_forceFull = true;
 }
 
-void OSystem_SDL::clear_overlay() {
+void OSystem_SDL::clearOverlay() {
 	if (!_overlayVisible)
 		return;
 	
@@ -866,7 +866,7 @@
 	_forceFull = true;
 }
 
-void OSystem_SDL::grab_overlay(OverlayColor *buf, int pitch) {
+void OSystem_SDL::grabOverlay(OverlayColor *buf, int pitch) {
 	if (!_overlayVisible)
 		return;
 
@@ -890,7 +890,7 @@
 	SDL_UnlockSurface(_tmpscreen);
 }
 
-void OSystem_SDL::copy_rect_overlay(const OverlayColor *buf, int pitch, int x, int y, int w, int h) {
+void OSystem_SDL::copyRectToOverlay(const OverlayColor *buf, int pitch, int x, int y, int w, int h) {
 	if (!_overlayVisible)
 		return;
 
@@ -953,7 +953,7 @@
 #pragma mark --- Mouse ---
 #pragma mark -
 
-bool OSystem_SDL::show_mouse(bool visible) {
+bool OSystem_SDL::showMouse(bool visible) {
 	if (_mouseVisible == visible)
 		return visible;
 	
@@ -977,7 +977,7 @@
 	}
 }
 
-void OSystem_SDL::warp_mouse(int x, int y) {
+void OSystem_SDL::warpMouse(int x, int y) {
 	if (_mouseCurState.x != x || _mouseCurState.y != y) {
 		SDL_WarpMouse(x * _scaleFactor, y * _scaleFactor);
 
@@ -992,7 +992,7 @@
 	}
 }
 	
-void OSystem_SDL::set_mouse_cursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y) {
+void OSystem_SDL::setMouseCursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y) {
 
 	undraw_mouse();
 

Index: sdl-common.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.h,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- sdl-common.h	15 Mar 2004 01:18:37 -0000	1.56
+++ sdl-common.h	28 Mar 2004 16:30:47 -0000	1.57
@@ -48,7 +48,7 @@
 
 	// Draw a bitmap to screen.
 	// The screen will not be updated to reflect the new bitmap
-	void copy_rect(const byte *src, int pitch, int x, int y, int w, int h);
+	void copyRectToScreen(const byte *src, int pitch, int x, int y, int w, int h);
 
 	void move_screen(int dx, int dy, int height);
 
@@ -56,15 +56,15 @@
 	void updateScreen();
 
 	// Either show or hide the mouse cursor
-	bool show_mouse(bool visible);
+	bool showMouse(bool visible);
 	
 	// Warp the mouse cursor. Where set_mouse_pos() only informs the
 	// backend of the mouse cursor's current position, this function
 	// actually moves the cursor to the specified position.
-	void warp_mouse(int x, int y);
+	void warpMouse(int x, int y);
 
 	// Set the bitmap that's used when drawing the cursor.
-	void set_mouse_cursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y);
+	void setMouseCursor(const byte *buf, uint w, uint h, int hotspot_x, int hotspot_y);
 
 	// Shaking is used in SCUMM. Set current shake position.
 	void set_shake_pos(int shake_pos);
@@ -111,11 +111,11 @@
 	void deleteMutex(MutexRef mutex);
 
 	// Overlay
-	virtual void show_overlay();
-	virtual void hide_overlay();
-	virtual void clear_overlay();
-	virtual void grab_overlay(OverlayColor *buf, int pitch);
-	virtual void copy_rect_overlay(const OverlayColor *buf, int pitch, int x, int y, int w, int h);
+	virtual void showOverlay();
+	virtual void hideOverlay();
+	virtual void clearOverlay();
+	virtual void grabOverlay(OverlayColor *buf, int pitch);
+	virtual void copyRectToOverlay(const OverlayColor *buf, int pitch, int x, int y, int w, int h);
 	virtual int16 getHeight();
 	virtual int16 getWidth();
 





More information about the Scummvm-git-logs mailing list