Author: spouliot
Date: 2007-01-15 19:55:01 -0500 (Mon, 15 Jan 2007)
New Revision: 71099

Modified:
   trunk/libgdiplus/src/ChangeLog
   trunk/libgdiplus/src/bitmap.c
Log:
        * bitmap.c: Clone the bitmap on GdipCreateBitmapFromHBITMAP too. This 
        ensure multiple GpBitmap objects can be created from a single HBITMAP.


Modified: trunk/libgdiplus/src/ChangeLog
===================================================================
--- trunk/libgdiplus/src/ChangeLog      2007-01-15 23:02:11 UTC (rev 71098)
+++ trunk/libgdiplus/src/ChangeLog      2007-01-16 00:55:01 UTC (rev 71099)
@@ -1,5 +1,7 @@
 2007-01-15  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
+       * bitmap.c: Clone the bitmap on GdipCreateBitmapFromHBITMAP too. This 
+       ensure multiple GpBitmap objects can be created from a single HBITMAP.
        * icocodec.c: Add support for 32bpp icons (aka XP icons).
 
 2007-01-12  Sebastien Pouliot  <[EMAIL PROTECTED]>

Modified: trunk/libgdiplus/src/bitmap.c
===================================================================
--- trunk/libgdiplus/src/bitmap.c       2007-01-15 23:02:11 UTC (rev 71098)
+++ trunk/libgdiplus/src/bitmap.c       2007-01-16 00:55:01 UTC (rev 71099)
@@ -1003,8 +1003,7 @@
        if (!bitmap || !hbm)
                return InvalidParameter;
 
-       *bitmap = hbm;
-       return Ok;
+       return GdipCloneImage ((GpImage *)hbm, (GpImage**)bitmap);
 }
 
 GpStatus

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to