diff options
author | Chris Apers | 2004-12-10 16:00:21 +0000 |
---|---|---|
committer | Chris Apers | 2004-12-10 16:00:21 +0000 |
commit | e78e6fa95096f8c2008a1788606a1366f554782f (patch) | |
tree | c2eb4f3ba81f1add146f6a07fd6f654014f2567f /backends/PalmOS/Src | |
parent | 85045efac8861c3c7c5c0907e0915dc3f3968882 (diff) | |
download | scummvm-rg350-e78e6fa95096f8c2008a1788606a1366f554782f.tar.gz scummvm-rg350-e78e6fa95096f8c2008a1788606a1366f554782f.tar.bz2 scummvm-rg350-e78e6fa95096f8c2008a1788606a1366f554782f.zip |
- cleanup
- move notification init after screenSize to prevent another DIA madness
svn-id: r16022
Diffstat (limited to 'backends/PalmOS/Src')
-rw-r--r-- | backends/PalmOS/Src/app.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/backends/PalmOS/Src/app.cpp b/backends/PalmOS/Src/app.cpp index 84e814efeb..94127db176 100644 --- a/backends/PalmOS/Src/app.cpp +++ b/backends/PalmOS/Src/app.cpp @@ -196,14 +196,11 @@ void WinScreenGetPitch() { void PINGetScreenDimensions() { UInt32 ftr; - - gVars->pinUpdate = false; - // if feature set, not set on Garmin iQue3600 ??? if (!(FtrGet(sysFtrCreator, sysFtrNumInputAreaFlags, &ftr))) { if (ftr & grfFtrInputAreaFlagCollapsible) { - RectangleType r; + Coord x, y; UInt16 curOrientation = SysGetOrientation(); OPTIONS_SET(kOptCollapsible); @@ -215,9 +212,9 @@ void PINGetScreenDimensions() { PINSetInputAreaState(pinInputAreaClosed); StatHide(); - WinGetBounds(WinGetDisplayWindow(), &r); - gVars->screenFullWidth = r.extent.x << 1; - gVars->screenFullHeight = r.extent.y << 1; + WinGetDisplayExtent(&x, &y); + gVars->screenFullWidth = x << 1; + gVars->screenFullHeight = y << 1; OPTIONS_SET(kOptModeWide); @@ -231,8 +228,6 @@ void PINGetScreenDimensions() { PINSetInputTriggerState(pinInputTriggerDisabled); } } - - gVars->pinUpdate = true; } static void AppStartCheckScreenSize() { @@ -249,7 +244,6 @@ static void AppStartCheckScreenSize() { slkRefNum = SilkInit(&version); gVars->slkRefNum = slkRefNum; gVars->slkVersion = version; - if (slkRefNum != sysInvalidRefNum) { if (version == vskVersionNum1) { SilkLibEnableResize(slkRefNum); @@ -335,7 +329,6 @@ Err AppStart(void) { gVars->HRrefNum = sysInvalidRefNum; gVars->volRefNum = sysInvalidRefNum; gVars->slkRefNum = sysInvalidRefNum; - gVars->skinSet = false; gVars->options = kOptNone; #ifndef DISABLE_TAPWAVE @@ -427,8 +420,8 @@ Err AppStart(void) { if (error) return (error); GamImportDatabase(); - AppStartCheckNotify(); // not fatal error if not avalaible AppStartCheckScreenSize(); + AppStartCheckNotify(); // not fatal error if not avalaible AppStartSetMemory(); // set memory required by the differents engines // force ARM option if bDirectMode |