Henri Verbeet : d2d1: Implement d2d_bitmap_GetSize().

Alexandre Julliard julliard at wine.codeweavers.com
Fri Feb 6 10:41:38 CST 2015


Module: wine
Branch: master
Commit: 7df055f17fdc3f5b7bdaafc5436cb21b6170d16f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7df055f17fdc3f5b7bdaafc5436cb21b6170d16f

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri Feb  6 09:57:00 2015 +0100

d2d1: Implement d2d_bitmap_GetSize().

---

 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;
 }
 




More information about the wine-cvs mailing list