Henri Verbeet : wined3d: Use the texture dimensions in swapchain_gdi_frontbuffer_updated().
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Apr 14 11:48:51 CDT 2016
Module: wine
Branch: master
Commit: 64767de27798c79a91e9b3a93f2e8a14aadd258f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=64767de27798c79a91e9b3a93f2e8a14aadd258f
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Wed Apr 13 19:09:52 2016 +0200
wined3d: Use the texture dimensions in swapchain_gdi_frontbuffer_updated().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/swapchain.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index bada5fe..e5c7da6 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -682,9 +682,9 @@ static void swapchain_gdi_frontbuffer_updated(struct wined3d_swapchain *swapchai
TRACE("offset %s.\n", wine_dbgstr_point(&offset));
draw_rect.left = 0;
- draw_rect.right = front->resource.width;
+ draw_rect.right = swapchain->front_buffer->resource.width;
draw_rect.top = 0;
- draw_rect.bottom = front->resource.height;
+ draw_rect.bottom = swapchain->front_buffer->resource.height;
IntersectRect(&draw_rect, &draw_rect, &swapchain->front_buffer_update);
BitBlt(dst_dc, draw_rect.left - offset.x, draw_rect.top - offset.y,
More information about the wine-cvs
mailing list