From e8829c01e60d2830cd204eb55cb61cf87eae68d2 Mon Sep 17 00:00:00 2001
From: Gerard Patel <gerard.patel@nerim.net>
Date: Tue, 21 Aug 2001 17:03:39 +0000
Subject: [PATCH] Default bitmap is not subject to reference counting.

---
 graphics/x11drv/bitmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/graphics/x11drv/bitmap.c b/graphics/x11drv/bitmap.c
index 77302053ef8..5ca1d358276 100644
--- a/graphics/x11drv/bitmap.c
+++ b/graphics/x11drv/bitmap.c
@@ -73,7 +73,7 @@ HBITMAP X11DRV_BITMAP_SelectObject( DC * dc, HBITMAP hbitmap )
     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 );
-- 
GitLab