Karsten Elfenbein : wined3d: BltOverride:
Make sure that the content of the source rect is
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Oct 20 04:45:43 CDT 2006
Module: wine
Branch: master
Commit: 1635da4b4664c59a37bc902fa108252932bb829f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1635da4b4664c59a37bc902fa108252932bb829f
Author: Karsten Elfenbein <kelfe at gmx.de>
Date: Thu Oct 19 17:32:28 2006 +0200
wined3d: BltOverride: Make sure that the content of the source rect is
copied to the correct position in the destination rect.
---
dlls/wined3d/surface.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 1242bbc..7a3fcb2 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2637,9 +2637,9 @@ static HRESULT IWineD3DSurfaceImpl_BltOv
} else {
glCopyTexSubImage2D(GL_TEXTURE_2D,
0, /* level */
- rect.x1, This->currentDesc.Height - row - 1, /* xoffset, yoffset */
- srect.x1, Src->currentDesc.Height - srect.y2 + row * yrel,
- rect.x2, 1);
+ rect.x1, rect.y2 + rect.y1 - row - 1, /* xoffset, yoffset */
+ srect.x1, row - rect.y1,
+ rect.x2-rect.x1, 1);
}
}
More information about the wine-cvs
mailing list