~ubuntu-branches/ubuntu/quantal/xdaliclock/quantal

« back to all changes in this revision

Viewing changes to X11/colors.c

  • Committer: Bazaar Package Importer
  • Author(s): Aaron Lehmann
  • Date: 2003-12-21 22:19:11 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20031221221911-257w35bqczk4i0l8
Tags: 2.20-1
New upstream version fixes Xinerama problems (Closes: #217684)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* xdaliclock - a melting digital clock
2
 
 * Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1999
 
2
 * Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1999, 2001
3
3
 *  Jamie Zawinski <jwz@jwz.org>
4
4
 *
5
5
 * Permission to use, copy, modify, distribute, and sell this software and its
64
64
               vclass == StaticColor ||
65
65
               vclass == TrueColor)
66
66
        {
67
 
#if 0
68
 
          fprintf (stderr,
69
 
                   (!root_p
70
 
                    ? "%s: -cycle is incompatible with visual\n\t"
71
 
        : "%s: -cycle is incompatible with the root window's visual\n\t"),
72
 
                   progname);
73
 
          describe_visual (stderr, dpy, visual);
74
 
          do_cycle = 0;
75
 
          goto AGAIN;
76
 
#else
77
67
          no_writable_cells = 1;
78
68
          goto NONWRITABLE;
79
 
#endif
80
69
        }
81
70
      else if (XAllocColorCells (dpy, cmap, False,
82
71
                                 &plane_masks, 0, pixels,
212
201
  if (! no_writable_cells)
213
202
    {
214
203
      XStoreColor (dpy, cmap, fg_color);
215
 
      if (!do_shape)
 
204
      if (!do_shape && !do_overlay)
216
205
        XStoreColor (dpy, cmap, bg_color);
217
206
    }
218
207
  else