render: multiply width/height with *new* scale factor, not old

This commit is contained in:
Daniel Eklöf 2019-08-21 17:56:41 +02:00
parent d7aaeaedee
commit c1903f5522
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -706,8 +706,8 @@ render_resize(struct terminal *term, int width, int height)
scale = 1;
}
width *= term->scale;
height *= term->scale;
width *= scale;
height *= scale;
if (width == 0 && height == 0) {
/* Assume we're not fully up and running yet */