Paul Gofman : wined3d: Use StretchBlt() in swapchain_blit_gdi().
Alexandre Julliard
julliard at winehq.org
Fri Feb 11 14:33:58 CST 2022
Module: wine
Branch: master
Commit: 2435f116c3ae527a4b6b52b78a44449a277fd8db
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2435f116c3ae527a4b6b52b78a44449a277fd8db
Author: Paul Gofman <pgofman at codeweavers.com>
Date: Fri Feb 11 15:19:58 2022 +0300
wined3d: Use StretchBlt() in swapchain_blit_gdi().
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/swapchain.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index 49a40f3e1d6..5fcbfc58779 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -459,8 +459,9 @@ static void swapchain_blit_gdi(struct wined3d_swapchain *swapchain,
if (!(dst_dc = GetDCEx(swapchain->win_handle, 0, DCX_USESTYLE | DCX_CACHE)))
ERR("Failed to get destination DC.\n");
- if (!BitBlt(dst_dc, dst_rect->left, dst_rect->top, dst_rect->right - dst_rect->left,
- dst_rect->bottom - dst_rect->top, src_dc, src_rect->left, src_rect->top, SRCCOPY))
+ if (!StretchBlt(dst_dc, dst_rect->left, dst_rect->top, dst_rect->right - dst_rect->left,
+ dst_rect->bottom - dst_rect->top, src_dc, src_rect->left, src_rect->top,
+ src_rect->right - src_rect->left, src_rect->bottom - src_rect->top, SRCCOPY))
ERR("Failed to blit.\n");
ReleaseDC(swapchain->win_handle, dst_dc);
More information about the wine-cvs
mailing list