dib: check for createdibsection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



        Huw Davies <huw@xxxxxxxxxxxxxxx>
        Check for the existence of the driver CreateDIBSection before calling
        it.
-- 
Huw Davies
huw@xxxxxxxxxxxxxxx
Index: objects/dib.c
===================================================================
RCS file: /home/wine/wine/objects/dib.c,v
retrieving revision 1.78
diff -u -r1.78 dib.c
--- objects/dib.c	12 Nov 2003 22:42:26 -0000	1.78
+++ objects/dib.c	13 Nov 2003 14:06:41 -0000
@@ -902,7 +902,10 @@
 
     if ((dc = DC_GetDCPtr( hdc )))
     {
-        hbitmap = dc->funcs->pCreateDIBSection(dc->physDev, bmi, usage, bits, section, offset, ovr_pitch);
+        if(dc->funcs->pCreateDIBSection)
+            hbitmap = dc->funcs->pCreateDIBSection(dc->physDev, bmi, usage, bits, section, offset, ovr_pitch);
+        else
+            FIXME("No CreateDIBSection support for this driver.\n");
         GDI_ReleaseObj(hdc);
     }
 


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux