From 4714f64440b2182716fa4618fe16e140b273986c Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Sun, 14 Jan 2007 17:34:40 +0000 Subject: Added missing grabRawScreen to OS5 backend svn-id: r25081 --- backends/platform/PalmOS/Src/be_os5.h | 1 + backends/platform/PalmOS/Src/be_zodiac.h | 1 - backends/platform/PalmOS/Src/os5_gfx.cpp | 12 +++++++++++- backends/platform/PalmOS/Src/zodiac_gfx.cpp | 12 +----------- 4 files changed, 13 insertions(+), 13 deletions(-) (limited to 'backends') diff --git a/backends/platform/PalmOS/Src/be_os5.h b/backends/platform/PalmOS/Src/be_os5.h index 68e9e1af1d..a5ee11d6e0 100644 --- a/backends/platform/PalmOS/Src/be_os5.h +++ b/backends/platform/PalmOS/Src/be_os5.h @@ -147,6 +147,7 @@ public: void copyRectToScreen(const byte *buf, int pitch, int x, int y, int w, int h); void clearScreen(); + bool grabRawScreen(Graphics::Surface *surf); void setMouseCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, byte keycolor, int cursorTargetScale); virtual void setCursorPalette(const byte *colors, uint start, uint num); diff --git a/backends/platform/PalmOS/Src/be_zodiac.h b/backends/platform/PalmOS/Src/be_zodiac.h index 73f5b55e24..42abf7bfa9 100644 --- a/backends/platform/PalmOS/Src/be_zodiac.h +++ b/backends/platform/PalmOS/Src/be_zodiac.h @@ -79,7 +79,6 @@ public: int getDefaultGraphicsMode() const; void updateScreen(); - bool grabRawScreen(Graphics::Surface *surf); void setCursorPalette(const byte *colors, uint start, uint num); diff --git a/backends/platform/PalmOS/Src/os5_gfx.cpp b/backends/platform/PalmOS/Src/os5_gfx.cpp index 2e2ec68454..d9076bc201 100644 --- a/backends/platform/PalmOS/Src/os5_gfx.cpp +++ b/backends/platform/PalmOS/Src/os5_gfx.cpp @@ -23,6 +23,7 @@ */ #include "be_os5.h" +#include "graphics/surface.h" #include #include @@ -246,6 +247,15 @@ void OSystem_PalmOS5::copyRectToScreen(const byte *buf, int pitch, int x, int y, } } +bool OSystem_PalmOS5::grabRawScreen(Graphics::Surface *surf) { + assert(surf); + + surf->create(_screenWidth, _screenHeight, 1); + MemMove(surf->pixels, _offScreenP, _screenWidth * _screenHeight); + + return true; +} + void OSystem_PalmOS5::int_updateScreen() { RectangleType r; PointType p; @@ -267,7 +277,7 @@ void OSystem_PalmOS5::clearScreen() { } void OSystem_PalmOS5::extras_palette(uint8 index, uint8 r, uint8 g, uint8 b) { - _nativePal[index] = gfxMakeDisplayRGB( r, g, b); + _nativePal[index] = gfxMakeDisplayRGB(r, g, b); } void OSystem_PalmOS5::draw_osd(UInt16 id, Int32 x, Int32 y, Boolean show, UInt8 color) { diff --git a/backends/platform/PalmOS/Src/zodiac_gfx.cpp b/backends/platform/PalmOS/Src/zodiac_gfx.cpp index bb70983e79..0c590fe86f 100644 --- a/backends/platform/PalmOS/Src/zodiac_gfx.cpp +++ b/backends/platform/PalmOS/Src/zodiac_gfx.cpp @@ -24,7 +24,6 @@ #include "be_zodiac.h" #include "common/config-manager.h" -#include "graphics/surface.h" #include "rumble.h" #ifdef PALMOS_68K @@ -268,17 +267,8 @@ void OSystem_PalmZodiac::updateScreen() { undraw_mouse(); } -bool OSystem_PalmZodiac::grabRawScreen(Graphics::Surface *surf) { - assert(surf); - - surf->create(_screenWidth, _screenHeight, 1); - MemMove(surf->pixels, _offScreenP, _screenWidth * _screenHeight); - - return true; -} - void OSystem_PalmZodiac::extras_palette(uint8 index, uint8 r, uint8 g, uint8 b) { - _nativePal[index] = TwGfxMakeDisplayRGB( r, g, b); + _nativePal[index] = TwGfxMakeDisplayRGB(r, g, b); } void OSystem_PalmZodiac::draw_osd(UInt16 id, Int32 x, Int32 y, Boolean show, UInt8 color) { -- cgit v1.2.3