mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
exaDrawableDirty: Fix initialization of BoxRec.
This will hopefully fix the partial window corruption experienced by some people.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user