fix redraw of tray when minirect disappears

This commit is contained in:
ehouse 2004-02-13 13:49:25 +00:00
parent b3765eed58
commit 71c91188e0

View file

@ -823,11 +823,12 @@ drawInsidePaint( HWND hWnd, CEAppGlobals* globals )
if ( !hdc ) { if ( !hdc ) {
logLastError( "drawInsidePaint" ); logLastError( "drawInsidePaint" );
} else { } else {
HDC prevHDC = globals->hdc;
globals->hdc = hdc; globals->hdc = hdc;
board_draw( globals->game.board ); board_draw( globals->game.board );
globals->hdc = NULL; globals->hdc = prevHDC;
} }
} /* drawInsidePaint */ } /* drawInsidePaint */
@ -1235,7 +1236,6 @@ WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
case ID_MOVE_NEXTHINT: case ID_MOVE_NEXTHINT:
case HINT_BUTTON_ID: case HINT_BUTTON_ID:
draw = ceHandleHintRequest( globals ); draw = ceHandleHintRequest( globals );
XP_DEBUGF("Hint called");
break; break;
case IDM_FILE_EXIT: case IDM_FILE_EXIT:
@ -1725,6 +1725,8 @@ ce_util_askPassword( XW_UtilCtxt* uc, const XP_UCHAR* name,
static void static void
ce_util_trayHiddenChange( XW_UtilCtxt* uc, XP_Bool nowHidden ) ce_util_trayHiddenChange( XW_UtilCtxt* uc, XP_Bool nowHidden )
{ {
CEAppGlobals* globals = (CEAppGlobals*)uc->closure;
drawInsidePaint( globals->hWnd, globals );
} /* ce_util_trayHiddenChange */ } /* ce_util_trayHiddenChange */
static void static void