summaryrefslogtreecommitdiff
path: root/hw/tcx.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-19 16:07:48 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-19 16:07:48 +0000
commit20483400d19273c11ee98821ce4592864e51bb81 (patch)
treeb6e8af104404d6a8e2ebb75c461ed768886cc964 /hw/tcx.c
parent33b6939fcb932a73965dc545c907f8e6bdd1b0cf (diff)
downloadqemu-20483400d19273c11ee98821ce4592864e51bb81.tar.gz
Also fix 24 bit depth
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4751 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/tcx.c')
-rw-r--r--hw/tcx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/tcx.c b/hw/tcx.c
index f0ae53ff35..a63b441883 100644
--- a/hw/tcx.c
+++ b/hw/tcx.c
@@ -266,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;