summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-03-30 20:47:35 +0200
committerBoris Faure <billiob@gmail.com>2015-03-30 20:47:35 +0200
commit709a55889f03d6da9de7e9310b6148c8996ee0f1 (patch)
tree5d5a05d88d3e296fe68d195bdc7b7c1f48bc2501 /src
parent834ee015327d0730de4272210bb5f655912141a6 (diff)
Revert "fix colors and show darkgray. Closes T2245"
This reverts commit 834ee015327d0730de4272210bb5f655912141a6.
Diffstat (limited to 'src')
-rw-r--r--src/bin/col.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/bin/col.c b/src/bin/col.c
index 65fc6ca..003847c 100644
--- a/src/bin/col.c
+++ b/src/bin/col.c
@@ -389,7 +389,7 @@ colors_term_init(Evas_Object *textgrid, Evas_Object *bg, Config *config)
389 389
390 for (c = 0; c < (4 * 12); c++) 390 for (c = 0; c < (4 * 12); c++)
391 { 391 {
392 n = c; 392 n = c + (24 * (c / 24));
393 if (config->colors_use) 393 if (config->colors_use)
394 { 394 {
395 r = config->colors[c].r; 395 r = config->colors[c].r;
@@ -421,19 +421,9 @@ colors_term_init(Evas_Object *textgrid, Evas_Object *bg, Config *config)
421 r, g, b, a); 421 r, g, b, a);
422 422
423 /* faint */ 423 /* faint */
424 if ((n == 1) && (r == 0) && (g == 0) && (b == 0)) 424 evas_object_textgrid_palette_set(
425 { 425 textgrid, EVAS_TEXTGRID_PALETTE_STANDARD, n + 24,
426 /* dark gray */ 426 r / 2, g / 2, b / 2, a / 2);
427 evas_object_textgrid_palette_set(
428 textgrid, EVAS_TEXTGRID_PALETTE_STANDARD, n + 48,
429 127, 127, 127, 127);
430 }
431 else
432 {
433 evas_object_textgrid_palette_set(
434 textgrid, EVAS_TEXTGRID_PALETTE_STANDARD, n + 48,
435 r / 2, g / 2, b / 2, a / 2);
436 }
437 } 427 }
438 for (c = 0; c < 256; c++) 428 for (c = 0; c < 256; c++)
439 { 429 {