http://bugs.winehq.org/show_bug.cgi?id=16542
Summary: SetDIBits, null DC and DIB_RGB_COLORS Product: Wine Version: 1.1.9 Platform: All OS/Version: Windows XP Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: surrel@visuol.com
MSDN help for SetDIBits states that:
"The device context identified by the hdc parameter is used only if the DIB_PAL_COLORS constant is set for the fuColorUse parameter; otherwise it is ignored"
When hdc is set to 0, with fuColorUse set to DIB_RGB_COLORS, Windows reports an error and one gets the WINE error message:
fixme:bitmap:SetDIBits shouldn't require a DC for DIB_RGB_COLORS
Apparently related to bug #15312