Huw Davies : comctl32: Limit the width of the watermark to 164 pixels.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Aug 1 12:45:51 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 650c9c42deea8723bcd6403755c06b10ea3cd483
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=650c9c42deea8723bcd6403755c06b10ea3cd483
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Aug 1 12:22:59 2006 +0100
comctl32: Limit the width of the watermark to 164 pixels.
---
dlls/comctl32/propsheet.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index 8fead28..972f862 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -3348,6 +3348,8 @@ static LRESULT PROPSHEET_Paint(HWND hwnd
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);
More information about the wine-cvs
mailing list