From 90a7e5ccc87ebee61db00ee12a72c064ca78ec4e Mon Sep 17 00:00:00 2001 From: ehouse Date: Fri, 30 Apr 2004 08:37:13 +0000 Subject: [PATCH] cleanup; fix hiding tray. --- palm/palmmain.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/palm/palmmain.c b/palm/palmmain.c index 4dcac47cc..e8ecfaa7b 100644 --- a/palm/palmmain.c +++ b/palm/palmmain.c @@ -897,7 +897,6 @@ getResString( PalmAppGlobals* globals, XP_U16 strID ) static Err volChangeEventProc( SysNotifyParamType* notifyParamsP ) { - PalmAppGlobals* globals = (PalmAppGlobals*)notifyParamsP->userDataP; #ifndef REALLY_HANDLE_MEDIA EventType eventToPost; #endif @@ -1022,6 +1021,7 @@ uninitHighResGlobals( PalmAppGlobals* globals ) } /* uninitHighResGlobals */ #else # define initHighResGlobals(g) +# define uninitHighResGlobals(g) #endif /***************************************************************************** @@ -1544,7 +1544,7 @@ handleHideTray( PalmAppGlobals* globals ) Boolean draw; XW_TrayVisState curState = board_getTrayVisState( globals->game.board ); - if ( curState == TRAY_REVEALED ) { + if ( curState != TRAY_HIDDEN ) { draw = board_hideTray( globals->game.board ); } else { draw = board_showTray( globals->game.board ); @@ -2073,12 +2073,14 @@ mainViewHandleEvent( EventPtr event ) draw = true; break; +#ifdef FEATURE_HIGHRES case doResizeWinEvent: getSizes( globals ); positionBoard( globals ); board_invalAll( globals->game.board ); FrmUpdateForm( 0, frmRedrawUpdateCode ); break; +#endif case prefsChangedEvent: erase = LocalPrefsToGlobal( globals ); @@ -2310,7 +2312,7 @@ mainViewHandleEvent( EventPtr event ) draw = handleTrade( globals ); break; - case XW_HIDETRAY_PULLDOWN_ID: + case XW_HIDESHOWTRAY_PULLDOWN_ID: draw = handleHideTray( globals ); break;