winex11.drv: Fixed computation of viewport and scissor position.

This commit is contained in:
Alexandre Julliard 2006-12-12 21:07:39 +01:00
parent 221b044740
commit aa25e2938c
1 changed files with 2 additions and 1 deletions

View File

@ -1457,7 +1457,8 @@ static void sync_current_drawable(void)
{
GetClipBox(ctx->physDev->hdc, &rc); /* Make sure physDev is up to date */
dy = ctx->physDev->drawable_rect.bottom - ctx->physDev->dc_rect.bottom;
dy = ctx->physDev->drawable_rect.bottom - ctx->physDev->drawable_rect.top -
ctx->physDev->dc_rect.bottom;
width = ctx->physDev->dc_rect.right - ctx->physDev->dc_rect.left;
height = ctx->physDev->dc_rect.bottom - ctx->physDev->dc_rect.top;