comctl32: Limit the width of the watermark to 164 pixels.
This commit is contained in:
parent
608ddd4742
commit
650c9c42de
|
@ -3348,6 +3348,8 @@ static LRESULT PROPSHEET_Paint(HWND hwnd, HDC hdcParam)
|
|||
GetObjectW(psInfo->ppshheader.u4.hbmWatermark, sizeof(BITMAP), (LPVOID)&bm);
|
||||
hbmp = SelectObject(hdcSrc, psInfo->ppshheader.u4.hbmWatermark);
|
||||
|
||||
/* The watermark is truncated to a width of 164 pixels */
|
||||
r.right = min(r.right, 164);
|
||||
BitBlt(hdc, 0, offsety, min(bm.bmWidth, r.right),
|
||||
min(bm.bmHeight, r.bottom), hdcSrc, 0, 0, SRCCOPY);
|
||||
|
||||
|
|
Loading…
Reference in New Issue