From 7e4717683d6c08d1e490a60b7493a94bbc57bf8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Sun, 15 Oct 2006 18:12:28 +0200 Subject: [PATCH] exaDrawableDirty: Fix initialization of BoxRec. This will hopefully fix the partial window corruption experienced by some people. --- exa/exa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exa/exa.c b/exa/exa.c index b0c4d314e..3e6ac76dc 100644 --- a/exa/exa.c +++ b/exa/exa.c @@ -126,7 +126,8 @@ exaDrawableDirty (DrawablePtr pDrawable, int x1, int y1, int x2, int y2) { ExaPixmapPrivPtr pExaPixmap; RegionPtr pDamageReg; - BoxRec box = { max(x1,0), max(y1,0), min(x2,pDrawable->width), min(y2,pDrawable->height) }; + BoxRec box = { .x1 = max(x1,0), .x2 = min(x2,pDrawable->width), + .y1 = max(y1,0), .y2 = min(y2,pDrawable->height) }; RegionRec region; pExaPixmap = ExaGetPixmapPriv(exaGetDrawablePixmap (pDrawable));