mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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
This commit is contained in:
parent
d978c02c31
commit
33b6939fcb
1 changed files with 2 additions and 0 deletions
2
hw/tcx.c
2
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue