diff options
author | Chris Apers | 2004-09-12 13:48:20 +0000 |
---|---|---|
committer | Chris Apers | 2004-09-12 13:48:20 +0000 |
commit | 5ce8b8d74141415d2cff1991375ad5b8c44bd172 (patch) | |
tree | c4f6fb8ee94a80438a4a68156d80fc880a6c4263 /backends/PalmOS/Src/start.cpp | |
parent | e06913a5dfd05c7127d9dd5c751370560b18ac93 (diff) | |
download | scummvm-rg350-5ce8b8d74141415d2cff1991375ad5b8c44bd172.tar.gz scummvm-rg350-5ce8b8d74141415d2cff1991375ad5b8c44bd172.tar.bz2 scummvm-rg350-5ce8b8d74141415d2cff1991375ad5b8c44bd172.zip |
????...
svn-id: r15064
Diffstat (limited to 'backends/PalmOS/Src/start.cpp')
-rw-r--r-- | backends/PalmOS/Src/start.cpp | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/backends/PalmOS/Src/start.cpp b/backends/PalmOS/Src/start.cpp index 89cc7de8da..9245d97404 100644 --- a/backends/PalmOS/Src/start.cpp +++ b/backends/PalmOS/Src/start.cpp @@ -23,7 +23,6 @@ #include <PalmOS.h> #include <SonyClie.h> -#include "vibrate.h" #include "start.h" #include "games.h" #include "globals.h" @@ -150,23 +149,6 @@ void SavePrefs() { } } -Boolean CheckVibratorExists() { - UInt32 romVersion; - Err err; - Boolean exists = false; - - err = FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion); - if (!err) { - if (romVersion >= sysMakeROMVersion(4,0,0,sysROMStageRelease,0)) { - Boolean active = false; - err = HwrVibrateAttributes(0, kHwrVibrateActive, &active); - exists = (!err) ? true : exists; - } - } - - return exists; -} - /*********************************************************************** * * FUNCTION: AppHandleEvent @@ -208,7 +190,7 @@ static Boolean AppHandleEvent(EventPtr eventP) FrmSetEventHandler(frmP, SkinsFormHandleEvent); break; - case EditGameForm: + case GameEditForm: FrmSetEventHandler(frmP, EditGameFormHandleEvent); break; @@ -325,8 +307,14 @@ static void AppLaunchCmdNotify(UInt16 LaunchFlags, SysNotifyParamType * pData) break; case sysNotifyDisplayResizedEvent: - if (gVars) { - if (gVars->pinUpdate) { + // FIXME : What the purpose of this code ??? it seems to be the part + // that make Zodiac silkarea be mad + /* if (gVars) { + static Boolean resized = false; + + if (gVars->pinUpdate && !resized) { + // resized = true; + EventType ev; MemSet(&ev, sizeof(EventType), 0); ev.eType = (enum eventsEnum)winDisplayChangedEvent; @@ -334,8 +322,10 @@ static void AppLaunchCmdNotify(UInt16 LaunchFlags, SysNotifyParamType * pData) PINGetScreenDimensions(); WinScreenGetPitch(); + } else { + // resized = false; } - } + }*/ break; case sonySysNotifyMsaEnforceOpenEvent: @@ -401,3 +391,12 @@ UInt32 PilotMain( UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags) { return ScummVMPalmMain(cmd, cmdPBP, launchFlags); } + +// This is now required since ScummEngine are now very big :) +#include "MemGlue.h" + +void *operator new(UInt32 size) { + void *ptr = MemGluePtrNew(size); + MemSet(ptr, 0, size); + return ptr; +} |