]> asedeno.scripts.mit.edu Git - pssh.git/commitdiff
Fix the greyscale ramp to actually fill the space.
authorAlejandro R. Sedeño <asedeno@mit.edu>
Wed, 25 Apr 2007 04:46:58 +0000 (04:46 +0000)
committerAlejandro R. Sedeño <asedeno@mit.edu>
Wed, 25 Apr 2007 04:46:58 +0000 (04:46 +0000)
Default colors can be bright now, so 0-15 are allowed.

arm/vt100/palm/palmwindow.c

index 90b63e50f98a15837c9529d4c69dcf626bbef160..3ceffce866319e0d5a9aa5f75cac003cae5aca46 100644 (file)
     {0, 0xff,0xcc,0x99}, {0, 0xff,0xcc,0xcc}, {0, 0xff,0xcc,0xff}, \
     {0, 0xff,0xff,0x00}, {0, 0xff,0xff,0x33}, {0, 0xff,0xff,0x66}, \
     {0, 0xff,0xff,0x99}, {0, 0xff,0xff,0xcc}, {0, 0xff,0xff,0xff}, \
-    {0, 0x00,0x00,0x00}, {0, 0x11,0x11,0x11}, {0, 0x22,0x22,0x22}, {0, 0x33,0x33,0x33}, \
-    {0, 0x44,0x44,0x44}, {0, 0x55,0x55,0x55}, {0, 0x66,0x66,0x66}, {0, 0x77,0x77,0x77}, \
-    {0, 0x88,0x88,0x88}, {0, 0x99,0x99,0x99}, {0, 0xaa,0xaa,0xaa}, {0, 0xbb,0xbb,0xbb}, \
-    {0, 0xcc,0xcc,0xcc}, {0, 0xdd,0xdd,0xdd}, {0, 0xee,0xee,0xee}, {0, 0xff,0xff,0xff},
+    {0, 0x00,0x00,0x00}, {0, 0x0b,0x0b,0x0b}, {0, 0x16,0x16,0x16}, {0, 0x21,0x21,0x21}, \
+    {0, 0x2c,0x2c,0x2c}, {0, 0x37,0x37,0x37}, {0, 0x42,0x42,0x42}, {0, 0x4d,0x4d,0x4d}, \
+    {0, 0x59,0x59,0x59}, {0, 0x64,0x64,0x64}, {0, 0x6f,0x6f,0x6f}, {0, 0x7a,0x7a,0x7a}, \
+    {0, 0x85,0x85,0x85}, {0, 0x90,0x90,0x90}, {0, 0x9b,0x9b,0x9b}, {0, 0xa6,0xa6,0xa6}, \
+    {0, 0xb2,0xb2,0xb2}, {0, 0xbd,0xbd,0xbd}, {0, 0xc8,0xc8,0xc8}, {0, 0xd3,0xd3,0xd3}, \
+    {0, 0xde,0xde,0xde}, {0, 0xe9,0xe9,0xe9}, {0, 0xf4,0xf4,0xf4}, {0, 0xff,0xff,0xff},
     
 static RGBColorType defaultColors[COLORS] = {
     DEFAULT_COLORS
@@ -127,9 +129,9 @@ static unsigned int DefaultBackColor = defaultBackColor;
 void read_default_colors(void)
 {
     DefaultForeColor = PrefsGetInt(prefTerminalForeColor, defaultForeColor);
-    if (DefaultForeColor >= 8) DefaultForeColor = defaultForeColor;
+    if (DefaultForeColor >= 16) DefaultForeColor = defaultForeColor;
     DefaultBackColor = PrefsGetInt(prefTerminalBackColor, defaultBackColor);
-    if (DefaultBackColor >= 8) DefaultBackColor = defaultBackColor;
+    if (DefaultBackColor >= 16) DefaultBackColor = defaultBackColor;
 }
 
 void set_palm_color(int fg_color, int bg_color)