Henri Verbeet : wined3d: Flip destination coordinates when blitting to an offscreen target in arbfp_blit_surface ().

Alexandre Julliard julliard at winehq.org
Thu Oct 21 10:50:48 CDT 2010


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Oct 21 12:40:43 2010 +0200

wined3d: Flip destination coordinates when blitting to an offscreen target in arbfp_blit_surface().

---

 dlls/wined3d/arb_program_shader.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index 3678f44..2623b57 100644
--- a/dlls/wined3d/arb_program_shader.c
+++ b/dlls/wined3d/arb_program_shader.c
@@ -7174,6 +7174,11 @@ HRESULT arbfp_blit_surface(IWineD3DDeviceImpl *device, IWineD3DSurfaceImpl *src_
             ? dst_surface->container.u.swapchain : NULL;
     if (dst_swapchain && dst_surface == dst_swapchain->front_buffer)
         surface_translate_frontbuffer_coords(dst_surface, context->win_handle, &dst_rect);
+    else if (surface_is_offscreen(dst_surface))
+    {
+        dst_rect.top = dst_surface->currentDesc.Height - dst_rect.top;
+        dst_rect.bottom = dst_surface->currentDesc.Height - dst_rect.bottom;
+    }
 
     arbfp_blit_set((IWineD3DDevice *)device, src_surface);
 




More information about the wine-cvs mailing list