5
0
mirror of git://git.proxmox.com/git/spiceterm.git synced 2024-12-22 13:34:06 +03:00

use correct raster on resize

This commit is contained in:
Dietmar Maurer 2013-10-08 12:14:10 +02:00
parent 27441de63d
commit 8a3547be31

View File

@ -2031,12 +2031,15 @@ init_spiceterm(spiceTerm *vt, uint32_t width, uint32_t height)
static void
spiceterm_resize(spiceTerm *vt, uint32_t width, uint32_t height)
{
DPRINTF(0, "width=%u height=%u", width, height);
width = (width/8)*8;
height = (height/16)*16;
if (vt->screen->width == width && vt->screen->height == height) {
return;
}
DPRINTF(0, "width=%u height=%u", width, height);
spice_screen_resize(vt->screen, width, height);
init_spiceterm(vt, width, height);
@ -2151,7 +2154,7 @@ main (int argc, char** argv)
if (0) print_usage(NULL); // fixme:
spiceTerm *vt = create_spiceterm (argc, argv, 745, 400, 10);
spiceTerm *vt = create_spiceterm (argc, argv, 744, 400, 10);
setlocale(LC_ALL, ""); // set from environment