mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-02 22:16:10 +00:00
s/MIN/min/, s/MAX/max/ (#2968)
This commit is contained in:
parent
7f027d9dc0
commit
e1e8c7ddd7
6 changed files with 24 additions and 40 deletions
|
|
@ -109,8 +109,8 @@ RootlessResolveColormap (ScreenPtr pScreen, int first_color,
|
|||
map = RootlessGetColormap (pScreen);
|
||||
if (map == NULL || map->class != PseudoColor) return FALSE;
|
||||
|
||||
last = MIN (map->pVisual->ColormapEntries, first_color + n_colors);
|
||||
for (i = MAX (0, first_color); i < last; i++) {
|
||||
last = min (map->pVisual->ColormapEntries, first_color + n_colors);
|
||||
for (i = max (0, first_color); i < last; i++) {
|
||||
Entry *ent = map->red + i;
|
||||
uint16_t red, green, blue;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue