grid looks better before mojibake #1012

This commit is contained in:
nick black 2020-09-14 02:42:01 -04:00
parent 592d7e76ae
commit 94aa8f08f1
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
3 changed files with 2 additions and 4 deletions

View File

@ -74,7 +74,7 @@ At any time, press 'q' to quit. The demo is best run in at least an 80x45 termin
**-V**: Print the program name and version, and exit with success. **-V**: Print the program name and version, and exit with success.
demospec: Select which demos to run, and what order to run them in. The demospec: Select which demos to run, and what order to run them in. The
default is **ixezcydthnbmgarwuvlsfjqo**. See above for a list of demos. default is **ixezcydthnbgmarwuvlsfjqo**. See above for a list of demos.
Default margins are all 0, and thus the full screen will be rendered. Using Default margins are all 0, and thus the full screen will be rendered. Using
**-m**, margins can be supplied. Provide a single number to set all four margins **-m**, margins can be supplied. Provide a single number to set all four margins

View File

@ -20,7 +20,7 @@ static int democount;
static demoresult* results; static demoresult* results;
static char *datadir = NOTCURSES_SHARE; static char *datadir = NOTCURSES_SHARE;
static const char DEFAULT_DEMO[] = "ixezcydthnbmgarwuvlsfjqo"; static const char DEFAULT_DEMO[] = "ixezcydthnbgmarwuvlsfjqo";
atomic_bool interrupted = ATOMIC_VAR_INIT(false); atomic_bool interrupted = ATOMIC_VAR_INIT(false);
// checked following demos, whether aborted, failed, or otherwise // checked following demos, whether aborted, failed, or otherwise

View File

@ -254,8 +254,6 @@ int grid_demo(struct notcurses* nc){
cell cl, cc, cr; cell cl, cc, cr;
prep_cells(n, &ul, &uc, &ur, &cl, &cc, &cr, &ll, &lc, &lr); prep_cells(n, &ul, &uc, &ur, &cl, &cc, &cr, &ll, &lc, &lr);
// notcurses_debug(nc, stderr);
int ret = 0; int ret = 0;
for(int i = 0 ; i < 256 ; ++i){ for(int i = 0 ; i < 256 ; ++i){
int maxx, maxy; int maxx, maxy;