From: blueswir1 Date: Thu, 19 Jun 2008 15:56:22 +0000 (+0000) Subject: Fix crash when returning from monitor or serial console to normal TCX view X-Git-Tag: TizenStudio_2.0_p2.3~11476 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b78ddea2d4173c0d17fef4a6b1b8602c7207b90;p=sdk%2Femulator%2Fqemu.git 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 --- diff --git a/hw/tcx.c b/hw/tcx.c index c72b999..f0ae53f 100644 --- a/hw/tcx.c +++ b/hw/tcx.c @@ -186,6 +186,8 @@ static void tcx_update_display(void *opaque) if (ts->ds->depth == 0) return; + if (ts->ds->width != ts->width || ts->ds->height != ts->height) + dpy_resize(ts->ds, ts->width, ts->height); page = ts->vram_offset; y_start = -1; page_min = 0xffffffff;