wined3d: BltOverride: Make sure that the content of the source rect is

copied to the correct position in the destination rect.
This commit is contained in:
Karsten Elfenbein 2006-10-19 17:32:28 +02:00 committed by Alexandre Julliard
parent d6632dd0fb
commit 1635da4b46
1 changed files with 3 additions and 3 deletions

View File

@ -2637,9 +2637,9 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
} 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);
}
}