@ -346,8 +346,8 @@ query_sixel(tinfo* ti, int fd){
ti->sixel_supported = true;
ti->color_registers = 256; // assumed default [shrug]
ti->pixel_destroy = sprite_sixel_annihilate;
// ti->sixel_maxx = ti->sixel_maxy = 0;
ti->sixel_maxx = ti->sixel_maxy = 0;
} // FIXME else warning?
}
break;
case DONE:
@ -48,7 +48,7 @@ int main(int argc, char** argv){
.margin_r = 2,
};
struct notcurses* nc = notcurses_init(&opts, NULL);
if(!notcurses_check_pixel_support(nc)){
if(notcurses_check_pixel_support(nc) <= 0){
notcurses_stop(nc);
fprintf(stderr, "this program requires pixel graphics support\n");
return EXIT_FAILURE;
@ -8,7 +8,7 @@ TEST_CASE("Pixel") {
auto n_ = notcurses_stdplane(nc_);
REQUIRE(n_);
if(!notcurses_check_pixel_support(nc_)){
if(notcurses_check_pixel_support(nc_) <= 0){
CHECK(!notcurses_stop(nc_));
return;