[normal] don't run without utf8

This commit is contained in:
nick black 2021-06-26 18:08:34 -04:00
parent 0760223fb5
commit 88a369e997
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -148,6 +148,9 @@ offset(uint32_t* rgba, int y, int x, int dx){
// make a pixel array out from the center, blitting it as we go
int normal_demo(struct notcurses* nc){
if(!notcurses_canutf8(nc)){
return 0;
}
int dy, dx;
int r = -1;
struct ncplane* nstd = notcurses_stddim_yx(nc, &dy, &dx);