diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2006-10-15 18:12:28 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2006-10-15 18:12:28 +0200 |
commit | 7e4717683d6c08d1e490a60b7493a94bbc57bf8d (patch) | |
tree | 1a083bfddfab4fd64a005f5be01c653cdf267bdb /exa | |
parent | f9f33b72e34eaeccea2a20f4a3dd68c2dbefc90e (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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)); |