render: simply check for an invalid (not set) scaling factor

This commit is contained in:
Daniel Eklöf 2021-05-13 00:19:54 +02:00
parent 0935428695
commit 0e7e7b769b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -3101,7 +3101,7 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
scale = it->item->scale;
}
if (scale == -1) {
if (scale < 0) {
/* Haven't 'entered' an output yet? */
scale = term->scale;
}