mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-04 06:00:30 +00:00
luigi: set sprite background so we can elide more
This commit is contained in:
parent
7eafdd6772
commit
ad4c8ac58a
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user