mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
Use SetBkMode to prevent overlapping tile face/value pairs from
erasing each other.
This commit is contained in:
parent
57197f8b2c
commit
c82fb50055
1 changed files with 2 additions and 0 deletions
|
@ -1528,6 +1528,7 @@ drawInsidePaint( CEAppGlobals* globals, const RECT* invalR )
|
||||||
if ( !hdc ) {
|
if ( !hdc ) {
|
||||||
logLastError( __func__ );
|
logLastError( __func__ );
|
||||||
} else {
|
} else {
|
||||||
|
int oldMode = SetBkMode( hdc, TRANSPARENT );
|
||||||
HDC prevHDC = globals->hdc;
|
HDC prevHDC = globals->hdc;
|
||||||
globals->hdc = hdc;
|
globals->hdc = hdc;
|
||||||
|
|
||||||
|
@ -1556,6 +1557,7 @@ drawInsidePaint( CEAppGlobals* globals, const RECT* invalR )
|
||||||
|
|
||||||
board_draw( globals->game.board );
|
board_draw( globals->game.board );
|
||||||
|
|
||||||
|
(void)SetBkMode( hdc, oldMode );
|
||||||
globals->hdc = prevHDC;
|
globals->hdc = prevHDC;
|
||||||
}
|
}
|
||||||
} /* drawInsidePaint */
|
} /* drawInsidePaint */
|
||||||
|
|
Loading…
Reference in a new issue