From aa25e2938cb709075e2c2b6bd5f047adb68e381b Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 12 Dec 2006 21:07:39 +0100 Subject: [PATCH] winex11.drv: Fixed computation of viewport and scissor position. --- dlls/winex11.drv/opengl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index 25d95709392..95ca1355dbf 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -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;