aboutsummaryrefslogtreecommitdiff
path: root/backends/morphos
diff options
context:
space:
mode:
authorMax Horn2004-03-28 16:30:50 +0000
committerMax Horn2004-03-28 16:30:50 +0000
commit14378cb56e18237cf1b8b5e088995e0b91f47410 (patch)
treee646deabd966699f0538880f74883255df2810bb /backends/morphos
parentefb5f3777a2aa664c6bc5e7fb5ab3f2b92da6ca8 (diff)
downloadscummvm-rg350-14378cb56e18237cf1b8b5e088995e0b91f47410.tar.gz
scummvm-rg350-14378cb56e18237cf1b8b5e088995e0b91f47410.tar.bz2
scummvm-rg350-14378cb56e18237cf1b8b5e088995e0b91f47410.zip
Renamed more OSystem methods
svn-id: r13410
Diffstat (limited to 'backends/morphos')
-rw-r--r--backends/morphos/morphos.cpp34
-rw-r--r--backends/morphos/morphos.h18
2 files changed, 26 insertions, 26 deletions
diff --git a/backends/morphos/morphos.cpp b/backends/morphos/morphos.cpp
index a68b818295..ed62106f32 100644
--- a/backends/morphos/morphos.cpp
+++ b/backends/morphos/morphos.cpp
@@ -969,7 +969,7 @@ bool OSystem_MorphOS::poll_event(Event *event)
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 @@ void OSystem_MorphOS::set_shake_pos(int shake_pos)
(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 @@ void OSystem_MorphOS::move_screen(int dx, int dy, int height) {
// 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 @@ void OSystem_MorphOS::move_screen(int dx, int dy, int height) {
// 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 @@ void OSystem_MorphOS::UndrawMouse()
}
}
-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_pos(int x, int y)
}
}
-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 @@ int16 OSystem_MorphOS::getHeight()
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::show_overlay()
}
}
-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::clear_overlay()
}
}
-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 @@ void OSystem_MorphOS::grab_overlay(int16 *buf, int pitch)
} 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 @@ void OSystem_MorphOS::copy_rect_overlay(const int16 *ovl, int pitch, int x, int
dest += (ScummBufferWidth-w)*3;
ovl += pitch-w;
}
- copy_rect(bmap, w, x, y, w, h);
+ copyRectToScreen(bmap, w, x, y, w, h);
FreeVec(bmap);
}
}
diff --git a/backends/morphos/morphos.h b/backends/morphos/morphos.h
index fd40369fd1..3d23e28476 100644
--- a/backends/morphos/morphos.h
+++ b/backends/morphos/morphos.h
@@ -51,30 +51,30 @@ class OSystem_MorphOS : public OSystem
// 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 @@ class OSystem_MorphOS : public OSystem
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);