aboutsummaryrefslogtreecommitdiff
path: root/hw/tcx.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/tcx.c')
-rw-r--r--hw/tcx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/tcx.c b/hw/tcx.c
index c72b99924..a63b44188 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;
@@ -264,6 +266,8 @@ static void tcx24_update_display(void *opaque)
if (ts->ds->depth != 32)
return;
+ if (ts->ds->width != ts->width || ts->ds->height != ts->height)
+ dpy_resize(ts->ds, ts->width, ts->height);
page = ts->vram_offset;
page24 = ts->vram24_offset;
cpage = ts->cplane_offset;