aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Apers2007-01-14 17:34:40 +0000
committerChris Apers2007-01-14 17:34:40 +0000
commit4714f64440b2182716fa4618fe16e140b273986c (patch)
tree9df01dc9340bf5e7092911c111ee672109dd148b
parent9e4502684cfdd0f447e25356388abb27872d2bc3 (diff)
downloadscummvm-rg350-4714f64440b2182716fa4618fe16e140b273986c.tar.gz
scummvm-rg350-4714f64440b2182716fa4618fe16e140b273986c.tar.bz2
scummvm-rg350-4714f64440b2182716fa4618fe16e140b273986c.zip
Added missing grabRawScreen to OS5 backend
svn-id: r25081
-rw-r--r--backends/platform/PalmOS/Src/be_os5.h1
-rw-r--r--backends/platform/PalmOS/Src/be_zodiac.h1
-rw-r--r--backends/platform/PalmOS/Src/os5_gfx.cpp12
-rw-r--r--backends/platform/PalmOS/Src/zodiac_gfx.cpp12
4 files changed, 13 insertions, 13 deletions
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 <PenInputMgr.h>
#include <palmOneResources.h>
@@ -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) {