Module: wine Branch: master Commit: 1fa3365832e35c42a20d7b40ef47bdb1d99c7f3f URL: http://source.winehq.org/git/wine.git/?a=commit;h=1fa3365832e35c42a20d7b40ef...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Fri Oct 15 14:35:11 2010 +0200
wined3d: Flip destination coordinates when blitting to an offscreen target in BltOverride().
---
dlls/wined3d/surface.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index ac566b4..7bc2a5d 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -3680,6 +3680,11 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *dst_surface,
if (dstSwapchain && dst_surface == dstSwapchain->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; + }
if (!device->blitter->blit_supported(gl_info, BLIT_OP_BLIT, &src_rect, src_surface->resource.usage, src_surface->resource.pool, src_surface->resource.format,