mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-10-31 15:20:13 +00:00
simplify pool_blit_direct()
This commit is contained in:
parent
11bbf3c4ff
commit
0cba073cc9
@ -967,11 +967,6 @@ pool_blit_direct(egcpool* pool, cell* c, const char* gcluster, int bytes, int co
|
||||
if(bytes < 0 || cols < 0){
|
||||
return -1;
|
||||
}
|
||||
if(bytes <= 1){
|
||||
assert(cols < 2);
|
||||
c->gcluster = htole((uint32_t)*gcluster);
|
||||
return bytes;
|
||||
}
|
||||
if(bytes <= 4){
|
||||
c->gcluster = 0;
|
||||
memcpy(&c->gcluster, gcluster, bytes);
|
||||
|
Loading…
Reference in New Issue
Block a user