From e78e6fa95096f8c2008a1788606a1366f554782f Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Fri, 10 Dec 2004 16:00:21 +0000 Subject: - cleanup - move notification init after screenSize to prevent another DIA madness svn-id: r16022 --- backends/PalmOS/Src/app.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'backends/PalmOS/Src/app.cpp') 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 -- cgit v1.2.3