[PATCH] Reference counting and default bitmap

Gerard Patel gerard.patel at nerim.net
Tue Aug 21 12:29:00 CDT 2001


ChangeLog:

	* graphics/x11drv/bitmap.c
               default bitmap is not subject to reference counting
-------------- next part --------------
Index: graphics/x11drv/bitmap.c
===================================================================
RCS file: /home/wine/wine/graphics/x11drv/bitmap.c,v
retrieving revision 1.32
diff -u -r1.32 bitmap.c
--- graphics/x11drv/bitmap.c	2001/08/20 19:19:18	1.32
+++ graphics/x11drv/bitmap.c	2001/08/21 14:17:07
@@ -73,7 +73,7 @@
     if (hbitmap == dc->hBitmap) return hbitmap;  /* nothing to do */
     if (!(bmp = GDI_GetObjPtr( hbitmap, BITMAP_MAGIC ))) return 0;
 
-    if (bmp->header.dwCount)
+    if (bmp->header.dwCount && (hbitmap != GetStockObject(DEFAULT_BITMAP)))
     {
         WARN( "Bitmap already selected in another DC\n" );
         GDI_ReleaseObj( hbitmap );
-------------- next part --------------



More information about the wine-patches mailing list