HDC tmphdc;\r
HBITMAP hbm;\r
static char oldBorder[MSG_SIZ];\r
- int w = 600, h = 600;\r
+ int w = 600, h = 600, mode;\r
\r
if(strcmp(appData.border, oldBorder)) { // load new one when old one no longer valid\r
strncpy(oldBorder, appData.border, MSG_SIZ-1);\r
w = bi.bmWidth;\r
h = bi.bmHeight;\r
}\r
+ mode = SetStretchBltMode(hdc, COLORONCOLOR);\r
StretchBlt(hdc, boardRect.left, boardRect.top, boardRect.right - boardRect.left, \r
boardRect.bottom - boardRect.top, tmphdc, 0, 0, w, h, SRCCOPY);\r
+ SetStretchBltMode(hdc, mode);\r
SelectObject(tmphdc, hbm);\r
DeleteDC(tmphdc);\r
}\r