luigi: set sprite background so we can elide more

This commit is contained in:
nick black 2019-12-10 07:03:29 -05:00
parent 7eafdd6772
commit ad4c8ac58a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -113,6 +113,8 @@ draw_luigi(struct ncplane* n, const char* sprite){
size_t s;
int sbytes;
uint64_t channels = 0;
// optimization so we can elide more color changes, see README's "#perf"
notcurses_bg_prep(&channels, 0x00, 0x00, 0x00);
for(s = 0 ; s < strlen(sprite) ; ++s){
switch(sprite[s]){
case '0':