diff options
author | keithw <keithw> | 2004-01-30 14:24:46 +0000 |
---|---|---|
committer | keithw <keithw> | 2004-01-30 14:24:46 +0000 |
commit | d476bd55601ed3ae541b30e6ef9ff2b4865fbcf4 (patch) | |
tree | 00dd2ee5eec84299ab28228589ad3041ecd93357 | |
parent | 9d053a4fae553fa7a55a52117831f2575d4a30cc (diff) |
Fix long-standing off-by-one bug in calculating dimensions of single
(private) back cliprect when the window is partially offscreen.
-rw-r--r-- | xc/programs/Xserver/GL/dri/dri.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xc/programs/Xserver/GL/dri/dri.c b/xc/programs/Xserver/GL/dri/dri.c index fbda42ab9..1575fea41 100644 --- a/xc/programs/Xserver/GL/dri/dri.c +++ b/xc/programs/Xserver/GL/dri/dri.c @@ -1250,8 +1250,8 @@ DRIGetDrawableInfo(ScreenPtr pScreen, if (x0 < 0) x0 = 0; if (y0 < 0) y0 = 0; - if (x1 > pScreen->width-1) x1 = pScreen->width-1; - if (y1 > pScreen->height-1) y1 = pScreen->height-1; + if (x1 > pScreen->width) x1 = pScreen->width; + if (y1 > pScreen->height) y1 = pScreen->height; pDRIPriv->private_buffer_rect.x1 = x0; pDRIPriv->private_buffer_rect.y1 = y0; |