From 43937cfb5b7ba6be05b1ae597806982c1a8e49af Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 2 Mar 2021 07:44:40 -0500 Subject: [PATCH] ncneofetch: use NCBLIT_PIXEL #1380 --- src/fetch/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/fetch/main.c b/src/fetch/main.c index acdfb3f8f..a47d185c4 100644 --- a/src/fetch/main.c +++ b/src/fetch/main.c @@ -559,7 +559,7 @@ neologo_present(struct ncdirect* nc, const char* nlogo){ } free(lines); ncdirect_set_fg_rgb(nc, 0xba55d3); - if(notcurses_canopen_images(NULL)){ + if(ncdirect_canopen_images(nc)){ ncdirect_printf_aligned(nc, -1, NCALIGN_CENTER, "(no image file is known for your distro)"); }else{ ncdirect_printf_aligned(nc, -1, NCALIGN_CENTER, "(notcurses was compiled without image support)"); @@ -571,15 +571,16 @@ static void* display_thread(void* vmarshal){ struct marshal* m = vmarshal; drawpalette(m->nc); - if(notcurses_canopen_images(NULL)){ + if(ncdirect_canopen_images(m->nc)){ + ncdirect_check_pixel_support(m->nc); if(m->logo){ if(ncdirect_render_image(m->nc, m->logo, NCALIGN_CENTER, - NCBLIT_DEFAULT, NCSCALE_SCALE_HIRES) == 0){ + NCBLIT_PIXEL, NCSCALE_SCALE_HIRES) == 0){ return NULL; } }else if(m->dinfo && m->dinfo->logofile){ if(ncdirect_render_image(m->nc, m->dinfo->logofile, NCALIGN_CENTER, - NCBLIT_DEFAULT, NCSCALE_SCALE_HIRES) == 0){ + NCBLIT_PIXEL, NCSCALE_SCALE_HIRES) == 0){ return NULL; } }