Bugfix: memory and thread-deleting problems
[monky] / src / colours.c
index 61810c9..290455e 100644 (file)
@@ -10,7 +10,7 @@
  * Please see COPYING for details
  *
  * Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
- * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
+ * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
  *     (see AUTHORS)
  * All rights reserved.
  *
@@ -163,6 +163,7 @@ unsigned long *do_gradient(int width, unsigned long first_colour, unsigned long
        return colours;
 }
 
+#ifdef X11
 long get_x11_color(const char *name)
 {
        XColor color;
@@ -188,3 +189,4 @@ long get_x11_color(const char *name)
 
        return (long) color.pixel;
 }
+#endif