Nikolay Sivov : d2d1: Set GDI compatible resource flag from bitmap options.

Alexandre Julliard julliard at winehq.org
Tue Oct 2 22:12:31 CDT 2018


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Oct  2 09:33:07 2018 +0300

d2d1: Set GDI compatible resource flag from bitmap options.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d2d1/bitmap.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/d2d1/bitmap.c b/dlls/d2d1/bitmap.c
index 6eee1d1..c0aef3c 100644
--- a/dlls/d2d1/bitmap.c
+++ b/dlls/d2d1/bitmap.c
@@ -345,6 +345,8 @@ HRESULT d2d_bitmap_create(struct d2d_device_context *context, D2D1_SIZE_U size,
         texture_desc.BindFlags |= D3D10_BIND_SHADER_RESOURCE;
     texture_desc.CPUAccessFlags = 0;
     texture_desc.MiscFlags = 0;
+    if (desc->bitmapOptions & D2D1_BITMAP_OPTIONS_GDI_COMPATIBLE)
+        texture_desc.MiscFlags |= D3D10_RESOURCE_MISC_GDI_COMPATIBLE;
 
     resource_data.pSysMem = src_data;
     resource_data.SysMemPitch = pitch;




More information about the wine-cvs mailing list