Jacek Caban : gdi32: Move CreateDiscardableBitmap implementation to objects.c.

Alexandre Julliard julliard at winehq.org
Mon Jul 5 16:24:20 CDT 2021


Module: wine
Branch: master
Commit: 0204ebbc67a67fa6d4070416c88b1eccc773f422
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0204ebbc67a67fa6d4070416c88b1eccc773f422

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Jul  5 13:41:28 2021 +0200

gdi32: Move CreateDiscardableBitmap implementation to objects.c.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdi32/bitmap.c  | 18 ------------------
 dlls/gdi32/objects.c | 10 ++++++++++
 2 files changed, 10 insertions(+), 18 deletions(-)

diff --git a/dlls/gdi32/bitmap.c b/dlls/gdi32/bitmap.c
index 22629f95af4..99b5d42a0d5 100644
--- a/dlls/gdi32/bitmap.c
+++ b/dlls/gdi32/bitmap.c
@@ -474,24 +474,6 @@ static INT BITMAP_GetObject( HGDIOBJ handle, INT count, LPVOID buffer )
 }
 
 
-/******************************************************************************
- * CreateDiscardableBitmap [GDI32.@]
- *
- * Creates a discardable bitmap.
- *
- * RETURNS
- *    Success: Handle to bitmap
- *    Failure: NULL
- */
-HBITMAP WINAPI CreateDiscardableBitmap(
-    HDC hdc,    /* [in] Handle to device context */
-    INT width,  /* [in] Bitmap width */
-    INT height) /* [in] Bitmap height */
-{
-    return CreateCompatibleBitmap( hdc, width, height );
-}
-
-
 /******************************************************************************
  *      NtGdiGetBitmapDimension (win32u.@)
  *
diff --git a/dlls/gdi32/objects.c b/dlls/gdi32/objects.c
index a7d565e32ed..b83ee139387 100644
--- a/dlls/gdi32/objects.c
+++ b/dlls/gdi32/objects.c
@@ -215,3 +215,13 @@ HBITMAP WINAPI CreateBitmap( INT width, INT height, UINT planes,
 
     return NtGdiCreateBitmap( width, height, planes, bpp, bits );
 }
+
+/******************************************************************************
+ *           CreateDiscardableBitmap (GDI32.@)
+ *
+ * Creates a discardable bitmap.
+ */
+HBITMAP WINAPI CreateDiscardableBitmap( HDC hdc, INT width, INT height )
+{
+    return CreateCompatibleBitmap( hdc, width, height );
+}




More information about the wine-cvs mailing list