diff options
author | marha <marha@users.sourceforge.net> | 2011-09-19 13:39:03 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-09-19 13:39:03 +0200 |
commit | 1678a69116d1c6ce900fe15f7813613bb28416dd (patch) | |
tree | 9589536f6b4bd60b34f90cf5ed20240d40bbb38c /libXmu/src/StdCmap.c | |
parent | 9d911bc1246139019e555f443e934677a067bc0a (diff) | |
parent | b2c925e360e2c366526de15b44603f855f94139c (diff) | |
download | vcxsrv-1678a69116d1c6ce900fe15f7813613bb28416dd.tar.gz vcxsrv-1678a69116d1c6ce900fe15f7813613bb28416dd.tar.bz2 vcxsrv-1678a69116d1c6ce900fe15f7813613bb28416dd.zip |
Merge remote-tracking branch 'origin/released'
Conflicts:
libfontenc/src/fontenc.c
Diffstat (limited to 'libXmu/src/StdCmap.c')
-rw-r--r-- | libXmu/src/StdCmap.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libXmu/src/StdCmap.c b/libXmu/src/StdCmap.c index 5d2ce6160..ccc822e17 100644 --- a/libXmu/src/StdCmap.c +++ b/libXmu/src/StdCmap.c @@ -1,4 +1,4 @@ -/* +/* Copyright 1989, 1998 The Open Group @@ -54,7 +54,7 @@ static Status valid_args(XVisualInfo*, unsigned long, unsigned long, * given standard property name. Return a pointer to an XStandardColormap * structure which describes the newly created colormap, upon success. * Upon failure, return NULL. - * + * * XmuStandardColormap() calls XmuCreateColormap() to create the map. * * Resources created by this function are not made permanent; that is the @@ -83,7 +83,7 @@ XmuStandardColormap(Display *dpy, int screen, VisualID visualid, int n; /* Match the required visual information to an actual visual */ - vinfo_template.visualid = visualid; + vinfo_template.visualid = visualid; vinfo_template.screen = screen; vinfo_template.depth = depth; vinfo_mask = VisualIDMask | VisualScreenMask | VisualDepthMask; @@ -120,7 +120,7 @@ XmuStandardColormap(Display *dpy, int screen, VisualID visualid, stdcmap->red_max = red_max; stdcmap->green_max = green_max; stdcmap->blue_max = blue_max; - if (property == XA_RGB_GRAY_MAP) + if (property == XA_RGB_GRAY_MAP) stdcmap->red_mult = stdcmap->green_mult = stdcmap->blue_mult = 1; else if (vinfo->class == TrueColor || vinfo->class == DirectColor) { stdcmap->red_mult = lowbit(vinfo->red_mask); @@ -149,7 +149,7 @@ XmuStandardColormap(Display *dpy, int screen, VisualID visualid, XFreeColormap(dpy, stdcmap->colormap); else if (stdcmap->killid != None) XFreePixmap(dpy, stdcmap->killid); - + XFree((char *) stdcmap); return (XStandardColormap *) NULL; } @@ -197,7 +197,7 @@ valid_args(XVisualInfo *vinfo, unsigned long red_max, unsigned long green_max, if (ncolors > vinfo->colormap_size) return 0; } - + /* Determine that the allocation and visual make sense for the property */ switch (property) @@ -214,7 +214,7 @@ valid_args(XVisualInfo *vinfo, unsigned long red_max, unsigned long green_max, if (green_max == 0) return 0; break; - case XA_RGB_BLUE_MAP: + case XA_RGB_BLUE_MAP: if (blue_max == 0) return 0; break; |