Commit 33b6939fcb932a73965dc545c907f8e6bdd1b0cf

Authored by blueswir1
1 parent d978c02c

Fix crash when returning from monitor or serial console to normal TCX view

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4750 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 0 deletions
hw/tcx.c
... ... @@ -186,6 +186,8 @@ static void tcx_update_display(void *opaque)
186 186  
187 187 if (ts->ds->depth == 0)
188 188 return;
  189 + if (ts->ds->width != ts->width || ts->ds->height != ts->height)
  190 + dpy_resize(ts->ds, ts->width, ts->height);
189 191 page = ts->vram_offset;
190 192 y_start = -1;
191 193 page_min = 0xffffffff;
... ...