sprixels: introduce sprixel cache #1401
parent
15aab20d21
commit
08b65a8699
@ -0,0 +1,8 @@
|
||||
#include "internal.h"
|
||||
|
||||
void sprixel_free(sprixel* s){
|
||||
if(s){
|
||||
free(s->glyph);
|
||||
free(s);
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
#include "main.h"
|
||||
|
||||
TEST_CASE("Pixel") {
|
||||
auto nc_ = testing_notcurses();
|
||||
REQUIRE(nullptr != nc_);
|
||||
ncplane* ncp_ = notcurses_stdplane(nc_);
|
||||
REQUIRE(ncp_);
|
||||
auto n_ = notcurses_stdplane(nc_);
|
||||
REQUIRE(n_);
|
||||
|
||||
if(!notcurses_check_pixel_support(nc_)){
|
||||
CHECK(!notcurses_stop(nc_));
|
||||
return;
|
||||
}
|
||||
|
||||
CHECK(!notcurses_stop(nc_));
|
||||
}
|
Loading…
Reference in New Issue