Commit 64767de2 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Use the texture dimensions in swapchain_gdi_frontbuffer_updated().

parent d7e05190
...@@ -682,9 +682,9 @@ static void swapchain_gdi_frontbuffer_updated(struct wined3d_swapchain *swapchai ...@@ -682,9 +682,9 @@ static void swapchain_gdi_frontbuffer_updated(struct wined3d_swapchain *swapchai
TRACE("offset %s.\n", wine_dbgstr_point(&offset)); TRACE("offset %s.\n", wine_dbgstr_point(&offset));
draw_rect.left = 0; draw_rect.left = 0;
draw_rect.right = front->resource.width; draw_rect.right = swapchain->front_buffer->resource.width;
draw_rect.top = 0; 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); IntersectRect(&draw_rect, &draw_rect, &swapchain->front_buffer_update);
BitBlt(dst_dc, draw_rect.left - offset.x, draw_rect.top - offset.y, BitBlt(dst_dc, draw_rect.left - offset.x, draw_rect.top - offset.y,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment