[ros-bugs] [Bug 3863] New: gdi32 does not handle brush+setbkcolor correctly

ReactOS.Bugzilla at www.reactos.org ReactOS.Bugzilla at www.reactos.org
Mon Nov 10 12:39:35 CET 2008


http://www.reactos.org/bugzilla/show_bug.cgi?id=3863

           Summary: gdi32 does not handle brush+setbkcolor correctly
           Product: ReactOS
           Version: TRUNK
          Platform: QEmu
        OS/Version: ReactOS
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: Win32
        AssignedTo: ros-bugs at reactos.org
        ReportedBy: grschneider at gmail.com
         QAContact: ros-bugs at reactos.org


One of my testcases showed that the following code:

BRUSH brush2 = CreateHatchBrush(HS_VERTICAL, RGB(127,127,127));
SelectObject(hdc, brush2);
SetBkColor(hdc, RGB(0, 255, 0));

does not select the bkcolor at all. 
Reversed order (setbkcolor first and select brush afterwards) works like it
should.
The win32k version (IntGdiSetBkColor in dcutil.c) calls NtGdiSelectBrush to do
this, the gdi32 version in dc.c does not - should it or do something completely
different?


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the Ros-bugs mailing list