X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utils%2Fcolorbars.h;h=e7d9d812aa0f381311a44d8298b51f2e15173344;hb=78add6e627ee5f10e1fa6f3852602ea5066eee5a;hp=93661a8123d44c51567aa32021bc19d780822a71;hpb=585e1a6717d1dd9b90fbb53acaaae82106354d33;p=xscreensaver diff --git a/utils/colorbars.h b/utils/colorbars.h index 93661a81..e7d9d812 100644 --- a/utils/colorbars.h +++ b/utils/colorbars.h @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 2001 Jamie Zawinski +/* xscreensaver, Copyright (c) 2001-2018 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -12,7 +12,14 @@ #ifndef __COLORBARS_H__ #define __COLORBARS_H__ -extern void draw_colorbars (Display *dpy, Window window, - int x, int y, int width, int height); +/* Renders colorbars (plus an xscreensaver logo) onto the + given Window or Pixmap. Width and height may be zero + (meaning "full size".) + + Colors will be allocated from the cmap, and never freed. + */ +extern void draw_colorbars (Screen *, Visual *, Drawable, Colormap, + int x, int y, int width, int height, + Pixmap logo, Pixmap logo_mask); #endif /* __COLORBARS_H__ */