diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2024-03-27 22:41:10 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2024-03-28 10:45:35 +0100 |
commit | 39f67db3848d7f856277948f9165f586b62ac589 (patch) | |
tree | d5d49732957fa24a3c7b18977ea76036b2d99340 /nx-X11 | |
parent | 1cef3ac4f8dfe44cc23e87b59b2b9f9b73db5cbf (diff) | |
download | nx-libs-39f67db3848d7f856277948f9165f586b62ac589.tar.gz nx-libs-39f67db3848d7f856277948f9165f586b62ac589.tar.bz2 nx-libs-39f67db3848d7f856277948f9165f586b62ac589.zip |
Drawable.c: fix build errors with TEST enabled
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Drawable.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Drawable.c b/nx-X11/programs/Xserver/hw/nxagent/Drawable.c index 121d54953..6f8ac64a6 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Drawable.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Drawable.c @@ -282,6 +282,13 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask static int totalLength; static int totalReconnectedPixmaps; + int width = pDrawable -> width; + int height = pDrawable -> height; + int depth = pDrawable -> depth; + + unsigned int format = (depth == 1) ? XYPixmap : ZPixmap; + int length = nxagentImageLength(width, height, format, 0, depth); + totalLength += length; totalReconnectedPixmaps++; @@ -1531,11 +1538,11 @@ void nxagentMarkCorruptedRegion(DrawablePtr pDrawable, RegionPtr pRegion) { #ifdef TEST - x = pRegion -> extents.x1; - y = pRegion -> extents.y1; + int x = pRegion -> extents.x1; + int y = pRegion -> extents.y1; - width = pRegion -> extents.x2 - pRegion -> extents.x1; - height = pRegion -> extents.y2 - pRegion -> extents.y1; + int width = pRegion -> extents.x2 - pRegion -> extents.x1; + int height = pRegion -> extents.y2 - pRegion -> extents.y1; fprintf(stderr, "nxagentMarkCorruptedRegion: Partly invalidating %s [%p] with " "coordinates [%d,%d][%d,%d].\n", nxagentDrawableType(pDrawable), |