summaryrefslogtreecommitdiff
path: root/exa
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2006-10-15 18:12:28 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2006-10-15 18:12:28 +0200
commit7e4717683d6c08d1e490a60b7493a94bbc57bf8d (patch)
tree1a083bfddfab4fd64a005f5be01c653cdf267bdb /exa
parentf9f33b72e34eaeccea2a20f4a3dd68c2dbefc90e (diff)
exaDrawableDirty: Fix initialization of BoxRec.
This will hopefully fix the partial window corruption experienced by some people.
Diffstat (limited to 'exa')
-rw-r--r--exa/exa.c3
1 files changed, 2 insertions, 1 deletions
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));