cleanup; fix hiding tray.

This commit is contained in:
ehouse 2004-04-30 08:37:13 +00:00
parent 437cd5e2cd
commit 653e428ef6

View file

@ -897,7 +897,6 @@ getResString( PalmAppGlobals* globals, XP_U16 strID )
static Err static Err
volChangeEventProc( SysNotifyParamType* notifyParamsP ) volChangeEventProc( SysNotifyParamType* notifyParamsP )
{ {
PalmAppGlobals* globals = (PalmAppGlobals*)notifyParamsP->userDataP;
#ifndef REALLY_HANDLE_MEDIA #ifndef REALLY_HANDLE_MEDIA
EventType eventToPost; EventType eventToPost;
#endif #endif
@ -1022,6 +1021,7 @@ uninitHighResGlobals( PalmAppGlobals* globals )
} /* uninitHighResGlobals */ } /* uninitHighResGlobals */
#else #else
# define initHighResGlobals(g) # define initHighResGlobals(g)
# define uninitHighResGlobals(g)
#endif #endif
/***************************************************************************** /*****************************************************************************
@ -1544,7 +1544,7 @@ handleHideTray( PalmAppGlobals* globals )
Boolean draw; Boolean draw;
XW_TrayVisState curState = board_getTrayVisState( globals->game.board ); XW_TrayVisState curState = board_getTrayVisState( globals->game.board );
if ( curState == TRAY_REVEALED ) { if ( curState != TRAY_HIDDEN ) {
draw = board_hideTray( globals->game.board ); draw = board_hideTray( globals->game.board );
} else { } else {
draw = board_showTray( globals->game.board ); draw = board_showTray( globals->game.board );
@ -2073,12 +2073,14 @@ mainViewHandleEvent( EventPtr event )
draw = true; draw = true;
break; break;
#ifdef FEATURE_HIGHRES
case doResizeWinEvent: case doResizeWinEvent:
getSizes( globals ); getSizes( globals );
positionBoard( globals ); positionBoard( globals );
board_invalAll( globals->game.board ); board_invalAll( globals->game.board );
FrmUpdateForm( 0, frmRedrawUpdateCode ); FrmUpdateForm( 0, frmRedrawUpdateCode );
break; break;
#endif
case prefsChangedEvent: case prefsChangedEvent:
erase = LocalPrefsToGlobal( globals ); erase = LocalPrefsToGlobal( globals );
@ -2310,7 +2312,7 @@ mainViewHandleEvent( EventPtr event )
draw = handleTrade( globals ); draw = handleTrade( globals );
break; break;
case XW_HIDETRAY_PULLDOWN_ID: case XW_HIDESHOWTRAY_PULLDOWN_ID:
draw = handleHideTray( globals ); draw = handleHideTray( globals );
break; break;