From 250681cf8d0b4f6ce25b84749e506cf44cd799ed Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 4 Aug 2021 16:23:13 -0400 Subject: [PATCH] dirgb: ignore italics errors --- src/poc/dirgb.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/poc/dirgb.c b/src/poc/dirgb.c index 6997ba139..d47ec48e2 100644 --- a/src/poc/dirgb.c +++ b/src/poc/dirgb.c @@ -34,14 +34,10 @@ print_gb(struct ncdirect* nc, int r, int total){ static int print_rgb8(struct ncdirect* nc, int total){ if(rand() % 2){ - if(ncdirect_off_styles(nc, NCSTYLE_ITALIC)){ - return -1; - } + ncdirect_off_styles(nc, NCSTYLE_ITALIC); } if(rand() % 16 == 0){ - if(ncdirect_on_styles(nc, NCSTYLE_ITALIC)){ - return -1; - } + ncdirect_on_styles(nc, NCSTYLE_ITALIC); } for(int r = 0 ; r <= total && r < 256 ; r += 4){ if(print_gb(nc, r, total)){ @@ -93,9 +89,7 @@ int main(void){ goto err; } - if(ncdirect_set_styles(nc, NCSTYLE_ITALIC)){ - goto err; - } + ncdirect_set_styles(nc, NCSTYLE_ITALIC); for(int t = 768 ; t ; t -= 4){ if(print_rgb8(nc, t)){ goto err;