diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2018-08-23 22:57:27 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2018-08-23 23:15:39 +0200 |
commit | 3bd41aaf7f882cb1df4ab62a064920b797c5b41d (patch) | |
tree | 995443565bb0c12bb06ff2bde8982ae8e4caa145 /nx-X11/programs/Xserver/hw/nxagent/Drawable.c | |
parent | b517b66efcbb30bb7f7add4fb5bfe48f3185b615 (diff) | |
download | nx-libs-3bd41aaf7f882cb1df4ab62a064920b797c5b41d.tar.gz nx-libs-3bd41aaf7f882cb1df4ab62a064920b797c5b41d.tar.bz2 nx-libs-3bd41aaf7f882cb1df4ab62a064920b797c5b41d.zip |
Replace MIN/MAX macros by min/max from misc.h
We do not need two versions in the code
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Drawable.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Drawable.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Drawable.c b/nx-X11/programs/Xserver/hw/nxagent/Drawable.c index 522870546..88f3da3a9 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Drawable.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Drawable.c @@ -25,6 +25,7 @@ #include "dixstruct.h" #include "../../fb/fb.h" +#include "misc.h" #include "Agent.h" #include "Display.h" @@ -696,11 +697,11 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned for (y = box.y1; y < box.y2; y += h) { - h = MIN(box.y2 - y, tileHeight); + h = min(box.y2 - y, tileHeight); for (x = box.x1; x < box.x2; x += w) { - w = MIN(box.x2 - x, tileWidth); + w = min(box.x2 - x, tileWidth); /* * FIXME: This should not occur. |