* Find virtual roots (_NET_VIRTUAL_ROOTS)
*/
static unsigned long *
-Find_Roots(Display * dpy, Window root, unsigned int *num)
+Find_Roots(Display * dpy, Window root, unsigned long *num)
{
Atom type_ret;
int format_ret;
Find_Client(Display * dpy, Window root, Window subwin)
{
unsigned long *roots;
- unsigned int i, n_roots;
+ unsigned long i, n_roots;
Window win;
/* Check if subwin is a virtual root */
*/
/* Prototype Declarations for Static Functions */
-static int QueryColorMap(
+static void QueryColorMap(
Display *, Colormap , Visual *,
XColor **, int *, int *, int *
);
XImage *,int ,int
);
static XImage * ReadRegionsInList(
- Display *, Visual *, int ,int ,int ,
- int , XRectangle, list_ptr
+ Display *, Visual *, int, int, unsigned int,
+ unsigned int, XRectangle, list_ptr
);
static list_ptr make_region_list(
Vis->bits_per_rgb = 8 ;
}
-static int
+static void
QueryColorMap(Display *disp, Colormap src_cmap, Visual *src_vis,
XColor **src_colors, int *rShift, int *gShift, int *bShift)
{
- int ncolors,i ;
+ unsigned int ncolors,i ;
unsigned long redMask, greenMask, blueMask;
int redShift, greenShift, blueShift;
XColor *colors ;
- ncolors = src_vis->map_entries ;
+ ncolors = (unsigned) src_vis->map_entries ;
*src_colors = colors = (XColor *)malloc(ncolors * sizeof(XColor) ) ;
if(src_vis->class != TrueColor && src_vis->class != DirectColor)
}
}
-
- XQueryColors(disp, src_cmap, colors, ncolors);
- return ncolors ;
+ XQueryColors(disp, src_cmap, colors, (int) ncolors);
}
int
XColor *colors;
int rShift = 0, gShift = 0, bShift = 0;
- (void) QueryColorMap(disp,reg->cmap,reg->vis,&colors,
+ QueryColorMap(disp,reg->cmap,reg->vis,&colors,
&rShift,&gShift,&bShift) ;
switch (reg->vis->class) {
static XImage *
ReadRegionsInList(Display *disp, Visual *fakeVis, int depth, int format,
- int width,int height,
+ unsigned int width, unsigned int height,
XRectangle bbox, /* bounding box of grabbed area */
list_ptr regions) /* list of regions to read from */
{