From da142af5d4d6761cb9a1e70ead561396827ca780 Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Tue, 17 Mar 2009 22:09:33 +0000 Subject: Changed grabOverlay() and copyRectToOverlay() to use OverlayColor instead of int16. svn-id: r39493 --- backends/platform/dc/dc.h | 4 ++-- backends/platform/dc/display.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'backends') 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) -- cgit v1.2.3