From c82fb500554524a7037f4c3b477a6e3fd1e59f80 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sat, 6 Dec 2008 22:14:40 +0000 Subject: [PATCH] Use SetBkMode to prevent overlapping tile face/value pairs from erasing each other. --- xwords4/wince/cemain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xwords4/wince/cemain.c b/xwords4/wince/cemain.c index fefbdf5c5..0de1b6dc5 100755 --- a/xwords4/wince/cemain.c +++ b/xwords4/wince/cemain.c @@ -1528,6 +1528,7 @@ drawInsidePaint( CEAppGlobals* globals, const RECT* invalR ) if ( !hdc ) { logLastError( __func__ ); } else { + int oldMode = SetBkMode( hdc, TRANSPARENT ); HDC prevHDC = globals->hdc; globals->hdc = hdc; @@ -1556,6 +1557,7 @@ drawInsidePaint( CEAppGlobals* globals, const RECT* invalR ) board_draw( globals->game.board ); + (void)SetBkMode( hdc, oldMode ); globals->hdc = prevHDC; } } /* drawInsidePaint */