[PATCH 3/5] d2d1: Implement d2d_bitmap_GetSize().

Henri Verbeet hverbeet at codeweavers.com
Fri Feb 6 02:57:00 CST 2015


---
 dlls/d2d1/bitmap.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/dlls/d2d1/bitmap.c b/dlls/d2d1/bitmap.c
index fd7a7a7..e827e46 100644
--- a/dlls/d2d1/bitmap.c
+++ b/dlls/d2d1/bitmap.c
@@ -79,10 +79,12 @@ static void STDMETHODCALLTYPE d2d_bitmap_GetFactory(ID2D1Bitmap *iface, ID2D1Fac
 
 static D2D1_SIZE_F * STDMETHODCALLTYPE d2d_bitmap_GetSize(ID2D1Bitmap *iface, D2D1_SIZE_F *size)
 {
-    FIXME("iface %p, size %p stub!\n", iface, size);
+    struct d2d_bitmap *bitmap = impl_from_ID2D1Bitmap(iface);
+
+    TRACE("iface %p, size %p.\n", iface, size);
 
-    size->width = 0.0f;
-    size->height = 0.0f;
+    size->width = bitmap->pixel_size.width / (bitmap->dpi_x / 96.0f);
+    size->height = bitmap->pixel_size.height / (bitmap->dpi_y / 96.0f);
     return size;
 }
 
-- 
1.7.10.4




More information about the wine-patches mailing list