Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
Description
I attach a test case where SetBrushOrgEx appears to have no effect. I also attach an exe that shows the problem as well as screenshots of the bug. The painting code of the test application is the following (the bug happens in the last two columns):
BeginPaint(hWnd, &ps);
|
HBRUSH hbrush = CreatePatternBrush(hbmp);
|
HBRUSH hbrushold = (HBRUSH)SelectObject(ps.hdc, hbrush);
|
|
//1st column |
PatBlt(ps.hdc, 0,0, 20, 100, PATCOPY); |
|
//2nd column |
PatBlt(ps.hdc, 40,0, 20, 50, PATCOPY); |
PatBlt(ps.hdc, 40,50, 20, 50, PATCOPY); |
|
//3rd column |
PatBlt(ps.hdc, 80,0, 20, 50, PATCOPY); |
SetViewportOrgEx(ps.hdc, 0, 50, NULL); |
PatBlt(ps.hdc, 80,0, 20, 50, PATCOPY); |
|
//4th column |
SetViewportOrgEx(ps.hdc, 0, 0, NULL); |
PatBlt(ps.hdc, 120,0, 20, 50, PATCOPY); |
SetViewportOrgEx(ps.hdc, 0, 50, NULL); |
PatBlt(ps.hdc, 120,50, 20, 50, PATCOPY); |
|
hbrushold = (HBRUSH)SelectObject(ps.hdc, hbrushold);
|
SetViewportOrgEx(ps.hdc, 0, 0, NULL); |
|
//5th column |
SetRect(&rc, 160, 0, 180,100); |
FillRect(ps.hdc, &rc, hbrush);
|
|
//6th column |
SetRect(&rc, 200, 0, 220,50); |
FillRect(ps.hdc, &rc, hbrush);
|
SetRect(&rc, 200, 50, 220,100); |
FillRect(ps.hdc, &rc, hbrush);
|
|
//7th column |
SetRect(&rc, 240, 0, 260,50); |
FillRect(ps.hdc, &rc, hbrush);
|
SetViewportOrgEx(ps.hdc, 0, 50, NULL); |
SetRect(&rc, 240, 0, 260,50); |
FillRect(ps.hdc, &rc, hbrush);
|
|
//8th column |
SetViewportOrgEx(ps.hdc, 0, 0, NULL); |
SetRect(&rc, 280, 0, 300,50); |
FillRect(ps.hdc, &rc, hbrush);
|
SetViewportOrgEx(ps.hdc, 0, 50, NULL); |
SetRect(&rc, 280, 50, 300,100); |
FillRect(ps.hdc, &rc, hbrush);
|
|
//9th column |
SetViewportOrgEx(ps.hdc, 0, 50, NULL); |
SetBrushOrgEx(ps.hdc, 0, 50, NULL); |
SetRect(&rc, 320, 0, 340,100); |
FillRect(ps.hdc, &rc, hbrush);
|
|
//10th column |
SetRect(&rc, 360, 0, 380,50); |
FillRect(ps.hdc, &rc, hbrush);
|
SetRect(&rc, 360, 50, 380,100); |
FillRect(ps.hdc, &rc, hbrush);
|
DeleteObject(hbrush);
|
|
EndPaint(hWnd, &ps);
|
Attachments
Issue Links
- blocks
-
CORE-12978 Incorrect tab background with themes
- Resolved
- is blocked by
-
CORE-13582 Regression: [WIN32K] reproducible BSOD due to unhandled exception - UltraVNC 1.2.1.1 local loopback connection
- Resolved
- relates to
-
CORE-11582 Reactos truncate window
- Resolved
-
CORE-12891 WIN32K: sort out the mess uncovered by the gdi32:bitmap winetest
- Open