mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
Merge branch 'master' of git://anongit.freedesktop.org/wayland
This commit is contained in:
commit
1b091dd411
1 changed files with 4 additions and 0 deletions
|
|
@ -841,6 +841,10 @@ terminal_draw(struct terminal *terminal)
|
|||
(int32_t) terminal->extents.max_x_advance;
|
||||
height = (rectangle.height - 2 * terminal->margin) /
|
||||
(int32_t) terminal->extents.height;
|
||||
|
||||
if (width < 0 || height < 0)
|
||||
return;
|
||||
|
||||
terminal_resize(terminal, width, height);
|
||||
|
||||
window_draw(terminal->window);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue