mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
ncplane_as_rgba: nil geometry is any non-positive geometry
This commit is contained in:
parent
de502655c2
commit
ee140a24e2
@ -2618,7 +2618,7 @@ uint32_t* ncplane_as_rgba(const ncplane* nc, ncblitter_e blit,
|
||||
if(leny == -1){
|
||||
leny = nc->leny - begy;
|
||||
}
|
||||
if(lenx < 0 || leny < 0){ // no need to draw zero-size object, exit
|
||||
if(lenx <= 0 || leny <= 0){ // no need to draw zero-size object, exit
|
||||
logerror(ncur, "Nil geometry (%dx%d)\n", leny, lenx);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user