aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Comstedt2009-03-17 22:09:33 +0000
committerMarcus Comstedt2009-03-17 22:09:33 +0000
commitda142af5d4d6761cb9a1e70ead561396827ca780 (patch)
tree24de03f463deed9ce466c351755bc1f75509fae4
parent063ce3938d6cbd98843d062a6d5a0f6738d888ef (diff)
downloadscummvm-rg350-da142af5d4d6761cb9a1e70ead561396827ca780.tar.gz
scummvm-rg350-da142af5d4d6761cb9a1e70ead561396827ca780.tar.bz2
scummvm-rg350-da142af5d4d6761cb9a1e70ead561396827ca780.zip
Changed grabOverlay() and copyRectToOverlay() to use OverlayColor instead of int16.
svn-id: r39493
-rw-r--r--backends/platform/dc/dc.h4
-rw-r--r--backends/platform/dc/display.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/backends/platform/dc/dc.h b/backends/platform/dc/dc.h
index 4893b5a37c..9d5e6fcace 100644
--- a/backends/platform/dc/dc.h
+++ b/backends/platform/dc/dc.h
@@ -151,8 +151,8 @@ class OSystem_Dreamcast : public BaseBackend, public FilesystemFactory {
void showOverlay();
void hideOverlay();
void clearOverlay();
- void grabOverlay(int16 *buf, int pitch);
- void copyRectToOverlay(const int16 *buf, int pitch, int x, int y, int w, int h);
+ void grabOverlay(OverlayColor *buf, int pitch);
+ void copyRectToOverlay(const OverlayColor *buf, int pitch, int x, int y, int w, int h);
virtual Graphics::PixelFormat getOverlayFormat() const { return Graphics::createPixelFormat<4444>(); }
// Mutex handling
diff --git a/backends/platform/dc/display.cpp b/backends/platform/dc/display.cpp
index d9c56c70ee..b52ecebd5e 100644
--- a/backends/platform/dc/display.cpp
+++ b/backends/platform/dc/display.cpp
@@ -555,7 +555,7 @@ void OSystem_Dreamcast::clearOverlay()
_overlay_dirty = true;
}
-void OSystem_Dreamcast::grabOverlay(int16 *buf, int pitch)
+void OSystem_Dreamcast::grabOverlay(OverlayColor *buf, int pitch)
{
int h = OVL_H;
unsigned short *src = overlay;
@@ -566,7 +566,7 @@ void OSystem_Dreamcast::grabOverlay(int16 *buf, int pitch)
} while (--h);
}
-void OSystem_Dreamcast::copyRectToOverlay(const int16 *buf, int pitch,
+void OSystem_Dreamcast::copyRectToOverlay(const OverlayColor *buf, int pitch,
int x, int y, int w, int h)
{
if (w<1 || h<1)