]> git.cworth.org Git - sup/commitdiff
bugfix: use 64 colors, not 16
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 20 May 2009 18:47:54 +0000 (11:47 -0700)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 20 May 2009 18:47:54 +0000 (11:47 -0700)
lib/sup/colormap.rb

index fe60f61362a5d65cd3abe22d4fcfbf8bc21d26c2..38787cddc41374a9f9adf583160627a5dfb448e0 100644 (file)
@@ -11,7 +11,7 @@ class Colormap
                    Curses::COLOR_YELLOW, Curses::COLOR_BLUE,
                    Curses::COLOR_MAGENTA, Curses::COLOR_CYAN,
                    Curses::COLOR_WHITE, Curses::COLOR_DEFAULT]
-  NUM_COLORS = 15
+  NUM_COLORS = (CURSES_COLORS.size - 1) * (CURSES_COLORS.size - 1)
 
   DEFAULT_COLORS = {
     :status => { :fg => "white", :bg => "blue", :attrs => ["bold"] },