[Scummvm-cvs-logs] SF.net SVN: scummvm: [25144] scummvm/trunk/backends/platform/PalmOS/Src
chrilith at users.sourceforge.net
chrilith at users.sourceforge.net
Sun Jan 21 10:58:18 CET 2007
Revision: 25144
http://scummvm.svn.sourceforge.net/scummvm/?rev=25144&view=rev
Author: chrilith
Date: 2007-01-21 01:58:18 -0800 (Sun, 21 Jan 2007)
Log Message:
-----------
Clenaup
Modified Paths:
--------------
scummvm/trunk/backends/platform/PalmOS/Src/zodiac_event.cpp
scummvm/trunk/backends/platform/PalmOS/Src/zodiac_gfx.cpp
Modified: scummvm/trunk/backends/platform/PalmOS/Src/zodiac_event.cpp
===================================================================
--- scummvm/trunk/backends/platform/PalmOS/Src/zodiac_event.cpp 2007-01-21 09:55:44 UTC (rev 25143)
+++ scummvm/trunk/backends/platform/PalmOS/Src/zodiac_event.cpp 2007-01-21 09:58:18 UTC (rev 25144)
@@ -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) {
Modified: scummvm/trunk/backends/platform/PalmOS/Src/zodiac_gfx.cpp
===================================================================
--- scummvm/trunk/backends/platform/PalmOS/Src/zodiac_gfx.cpp 2007-01-21 09:55:44 UTC (rev 25143)
+++ scummvm/trunk/backends/platform/PalmOS/Src/zodiac_gfx.cpp 2007-01-21 09:58:18 UTC (rev 25144)
@@ -59,9 +59,6 @@
_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 @@
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list