Module: wine Branch: master Commit: aa25e2938cb709075e2c2b6bd5f047adb68e381b URL: http://source.winehq.org/git/wine.git/?a=commit;h=aa25e2938cb709075e2c2b6bd5...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Dec 12 21:07:39 2006 +0100
winex11.drv: Fixed computation of viewport and scissor position.
---
dlls/winex11.drv/opengl.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index 25d9570..95ca135 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;