Commit 608ddd47 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

comctl32: Limit the size of the header bitmap to 49x49.

parent d1be7624
......@@ -3269,14 +3269,15 @@ static LRESULT PROPSHEET_Paint(HWND hwnd, HDC hdcParam)
}
else
{
int margin;
hbr = GetSysColorBrush(COLOR_WINDOW);
FillRect(hdc, &rzone, hbr);
/* Draw the header bitmap. It's always centered like a
* common 49 x 49 bitmap. */
BitBlt(hdc, rzone.right - 49 - ((rzone.bottom - 49) / 2),
(rzone.bottom - 49) / 2,
bm.bmWidth, bm.bmHeight,
margin = (rzone.bottom - 49) / 2;
BitBlt(hdc, rzone.right - 49 - margin, margin,
min(bm.bmWidth, 49), min(bm.bmHeight, 49),
hdcSrc, 0, 0, SRCCOPY);
/* NOTE: Native COMCTL32 draws a white stripe over the bitmap
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment