aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/QuColors.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/QuColors.c')
-rw-r--r--nx-X11/lib/X11/QuColors.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/nx-X11/lib/X11/QuColors.c b/nx-X11/lib/X11/QuColors.c
index 7937f5e5a..13a63eb25 100644
--- a/nx-X11/lib/X11/QuColors.c
+++ b/nx-X11/lib/X11/QuColors.c
@@ -75,26 +75,25 @@ int
XQueryColors(
register Display * const dpy,
const Colormap cmap,
- XColor *defs, /* RETURN */
+ XColor *defs, /* RETURN */
int ncolors)
{
int n;
if (dpy->bigreq_size > 0)
- n = dpy->bigreq_size - (sizeof (xQueryColorsReq) >> 2) - 1;
+ n = dpy->bigreq_size - (sizeof (xQueryColorsReq) >> 2) - 1;
else
- n = dpy->max_request_size - (sizeof (xQueryColorsReq) >> 2);
+ n = dpy->max_request_size - (sizeof (xQueryColorsReq) >> 2);
LockDisplay(dpy);
while (ncolors >= n) {
- _XQueryColors(dpy, cmap, defs, n);
- defs += n;
- ncolors -= n;
+ _XQueryColors(dpy, cmap, defs, n);
+ defs += n;
+ ncolors -= n;
}
if (ncolors > 0)
- _XQueryColors(dpy, cmap, defs, ncolors);
+ _XQueryColors(dpy, cmap, defs, ncolors);
UnlockDisplay(dpy);
SyncHandle();
return 1;
}
-