GetDIBits() with a bitmap that is selected in a device context

Michael Kaufmann hallo at michael-kaufmann.ch
Mon Jun 5 16:29:37 CDT 2006


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.




More information about the wine-devel mailing list