diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-19 15:56:22 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-19 15:56:22 +0000 |
commit | 33b6939fcb932a73965dc545c907f8e6bdd1b0cf (patch) | |
tree | da68f7310428016e566e7e769621ebe917302572 | |
parent | d978c02c311e833059b9d64487e37a5d0253a30b (diff) |
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
-rw-r--r-- | hw/tcx.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |