From 8795dd000c2469dc34ec72cb69a5dd93d296b77c Mon Sep 17 00:00:00 2001 From: girst Date: Sun, 24 Feb 2019 18:56:18 +0100 Subject: [PATCH] updated foundation placeholder MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit the braille characters are widely enough supported, and the placeholder should still make sense even if they aren't on a system. not commited: alternate "10" symbols. ⒑ (tofu in xterm), ⏨ (too small, tofu in xterm), Ю, (cyrillic yu, not looking too good) --- schemes.h | 8 ++++---- sol.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/schemes.h b/schemes.h index 6d26c3c..c4cdca2 100644 --- a/schemes.h +++ b/schemes.h @@ -83,8 +83,8 @@ const struct scheme unicode_large_mono = { }, .foundation = (char*[]){ "╭╌╌╌╮", - "╎╭─╮╎", - "╎├─┤╎", + "╎⢠⠒⡄╎", + "╎⠸⠉⠇╎", "╰╌╌╌╯" }, .halfstack = (char*[]) { @@ -148,8 +148,8 @@ const struct scheme unicode_large_color = { }, .foundation = (char*[]){ "╭╌╌╌╮", - "╎\033[2m╭─╮\033[22m╎", - "╎\033[2m├─┤\033[22m╎", + "╎\033[2m⢠⠒⡄\033[22m╎", + "╎\033[2m⠸⠉⠇\033[22m╎", "╰╌╌╌╯" }, .halfstack = (char*[]) { diff --git a/sol.c b/sol.c index 3e9fd83..d58e461 100644 --- a/sol.c +++ b/sol.c @@ -1471,7 +1471,7 @@ void print_table(const struct cursor* active, const struct cursor* inactive) { inactive->pile==FOUNDATION && ( /* cursor addr. || direct addr. */ inactive->opt==pile || inactive->opt < 0 - ), 1, + ), !!f.f[pile][0], (card < 0)?op.s->foundation[line] :op.s->card[f.f[pile][card]][line]); } @@ -1510,7 +1510,7 @@ void print_table(const struct cursor* active, const struct cursor* inactive) { inactive->pile==STOCK && ( /* cursor addr. || direct addr. */ inactive->opt==pile || inactive->opt < 0 - ), 1, + ), !!f.s[pile], ((f.s[pile])?op.s->card[f.s[pile]] :op.s->placeholder)[line]); for (int pile = 0; pile < NUM_SUITS; pile++) { @@ -1519,7 +1519,7 @@ void print_table(const struct cursor* active, const struct cursor* inactive) { inactive->pile==FOUNDATION && ( /* cursor addr. || direct addr. */ inactive->opt==pile || inactive->opt < 0 - ), 1, + ), !!f.f[pile][0], (card < 0)?op.s->foundation[line] :op.s->card[f.f[pile][card]][line]); } -- 2.39.3