Commit 20483400d19273c11ee98821ce4592864e51bb81
1 parent
33b6939f
Also fix 24 bit depth
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4751 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
0 deletions
hw/tcx.c
| ... | ... | @@ -266,6 +266,8 @@ static void tcx24_update_display(void *opaque) |
| 266 | 266 | |
| 267 | 267 | if (ts->ds->depth != 32) |
| 268 | 268 | return; |
| 269 | + if (ts->ds->width != ts->width || ts->ds->height != ts->height) | |
| 270 | + dpy_resize(ts->ds, ts->width, ts->height); | |
| 269 | 271 | page = ts->vram_offset; |
| 270 | 272 | page24 = ts->vram24_offset; |
| 271 | 273 | cpage = ts->cplane_offset; | ... | ... |