mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
fix redraw of tray when minirect disappears
This commit is contained in:
parent
b3765eed58
commit
71c91188e0
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue