The application "Fritz 5.32" calls GetDIBits() with a bitmap that is still selected in a device context (see bug 3893). The bitmap has a color table. GetDIBits() creates a memory DC, selects the bitmap into this DC, and calls GetDIBColorTable(). But this fails, because Wine can't select this bitmap in a memory device context again. According to MSDN, calling GetDIBits with a bitmap that is selected in a device context is not allowed. But surprisingly it works on Windows.
Does anybody have an idea how to solve this problem?
Regards, Michael
"Michael Kaufmann" hallo@michael-kaufmann.ch wrote:
The application "Fritz 5.32" calls GetDIBits() with a bitmap that is still selected in a device context (see bug 3893). The bitmap has a color table. GetDIBits() creates a memory DC, selects the bitmap into this DC, and calls GetDIBColorTable(). But this fails, because Wine can't select this bitmap in a memory device context again. According to MSDN, calling GetDIBits with a bitmap that is selected in a device context is not allowed. But surprisingly it works on Windows.
Does anybody have an idea how to solve this problem?
A very first step should be to write a test case and integrate it into the Wine GDI tests.
I have submitted new tests to wine-patches.
@Dmitry: One of your bitmap tests triggers an assertion on Windows 9x. Look here: http://test.winehq.org/data/200605161000/
Regards, Michael
Dmitry Timoshkov wrote:
The application "Fritz 5.32" calls GetDIBits() with a bitmap that is still selected in a device context (see bug 3893). The bitmap has a color table. GetDIBits() creates a memory DC, selects the bitmap into this DC, and calls GetDIBColorTable(). But this fails, because Wine can't select this bitmap in a memory device context again. According to MSDN, calling GetDIBits with a bitmap that is selected in a device context is not allowed. But surprisingly it works on Windows.
Does anybody have an idea how to solve this problem?
A very first step should be to write a test case and integrate it into the Wine GDI tests.
"Michael Kaufmann" hallo@michael-kaufmann.ch wrote:
I have submitted new tests to wine-patches.
Thanks.
@Dmitry: One of your bitmap tests triggers an assertion on Windows 9x. Look here: http://test.winehq.org/data/200605161000/
That's strange. Although many tests fail here under Win98SE the test runs to the end without any assertion.