aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorChris Apers2007-01-21 09:58:18 +0000
committerChris Apers2007-01-21 09:58:18 +0000
commit0ea9f49d671cef87bdc26d939f19a3f9e087b9f2 (patch)
treefd1e62cae680286cc185b7edbdd0b43137b1bbd1 /backends
parentd9e866398d125692444b7812bd3cbb95d3ab9977 (diff)
downloadscummvm-rg350-0ea9f49d671cef87bdc26d939f19a3f9e087b9f2.tar.gz
scummvm-rg350-0ea9f49d671cef87bdc26d939f19a3f9e087b9f2.tar.bz2
scummvm-rg350-0ea9f49d671cef87bdc26d939f19a3f9e087b9f2.zip
Clenaup
svn-id: r25144
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/PalmOS/Src/zodiac_event.cpp27
-rw-r--r--backends/platform/PalmOS/Src/zodiac_gfx.cpp6
2 files changed, 3 insertions, 30 deletions
diff --git a/backends/platform/PalmOS/Src/zodiac_event.cpp b/backends/platform/PalmOS/Src/zodiac_event.cpp
index 68afbe87a9..9dd0fc3e78 100644
--- a/backends/platform/PalmOS/Src/zodiac_event.cpp
+++ b/backends/platform/PalmOS/Src/zodiac_event.cpp
@@ -24,33 +24,6 @@
#include "be_zodiac.h"
-void OSystem_PalmZodiac::get_coordinates(EventPtr ev, Coord &x, Coord &y) {
- Boolean dummy;
- EvtGetPenNative(WinGetDisplayWindow(), &ev->screenX, &ev->screenY, &dummy);
-
- x = (ev->screenX - _screenOffset.x);
- y = (ev->screenY - _screenOffset.y);
-
- if (_stretched) {
- Int32 w, h;
-
- if (_mode == GFX_NORMAL) {
-
- h = gVars->screenHeight - MIN_OFFSET * 2;
- w = gVars->screenWidth;
- x = (_screenWidth * x) / w;
- y = (_screenHeight * y) / h;
-
- } else {
-
- h = (_ratio.adjustAspect == kRatioHeight ? _ratio.height : gVars->screenFullHeight);
- w = (_ratio.adjustAspect == kRatioWidth ? _ratio.width : gVars->screenFullWidth);
- x = (_screenWidth * x) / w;
- y = (_screenHeight * y) / h;
- }
- }
-}
-
bool OSystem_PalmZodiac::check_event(Event &event, EventPtr ev) {
if (ev->eType == keyDownEvent) {
switch (ev->data.keyDown.chr) {
diff --git a/backends/platform/PalmOS/Src/zodiac_gfx.cpp b/backends/platform/PalmOS/Src/zodiac_gfx.cpp
index 0c590fe86f..d14f745657 100644
--- a/backends/platform/PalmOS/Src/zodiac_gfx.cpp
+++ b/backends/platform/PalmOS/Src/zodiac_gfx.cpp
@@ -59,9 +59,6 @@ void OSystem_PalmZodiac::load_gfx_mode() {
_ratio.width = ((float)_screenWidth / _screenHeight * gVars->screenFullHeight);
_ratio.height = ((float)_screenHeight / _screenWidth * gVars->screenFullWidth);
- _sysOldOrientation = SysGetOrientation();
- SysSetOrientation(sysOrientationLandscape);
-
_mouseBackupP = (byte *)MemPtrNew(MAX_MOUSE_W * MAX_MOUSE_H * 2); // *2 if 16bit
_mouseDataP = (byte *)MemPtrNew(MAX_MOUSE_W * MAX_MOUSE_H);
_offScreenP = (byte *)MemPtrNew(_screenWidth * _screenHeight);
@@ -73,6 +70,9 @@ void OSystem_PalmZodiac::load_gfx_mode() {
UInt32 depth = 16;
WinScreenMode(winScreenModeSet, NULL, NULL, &depth, NULL);
+ _sysOldOrientation = SysGetOrientation();
+ SysSetOrientation(sysOrientationLandscape);
+
gVars->indicator.on = RGBToColor(0,255,0);
gVars->indicator.off = RGBToColor(0,0,0);