mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
Implement resolution switching in common console code.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4812 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
ea334207a3
commit
c60e08d9c6
20 changed files with 109 additions and 91 deletions
|
@ -23,6 +23,7 @@ struct pxa2xx_lcdc_s {
|
|||
|
||||
int invalidated;
|
||||
DisplayState *ds;
|
||||
QEMUConsole *console;
|
||||
drawfn *line_fn[2];
|
||||
int dest_width;
|
||||
int xres, yres;
|
||||
|
@ -794,9 +795,9 @@ static void pxa2xx_lcdc_resize(struct pxa2xx_lcdc_s *s)
|
|||
|
||||
if (width != s->xres || height != s->yres) {
|
||||
if (s->orientation)
|
||||
dpy_resize(s->ds, height, width);
|
||||
qemu_console_resize(s->console, height, width);
|
||||
else
|
||||
dpy_resize(s->ds, width, height);
|
||||
qemu_console_resize(s->console, width, height);
|
||||
s->invalidated = 1;
|
||||
s->xres = width;
|
||||
s->yres = height;
|
||||
|
@ -1001,8 +1002,9 @@ struct pxa2xx_lcdc_s *pxa2xx_lcdc_init(target_phys_addr_t base, qemu_irq irq,
|
|||
pxa2xx_lcdc_writefn, s);
|
||||
cpu_register_physical_memory(base, 0x00100000, iomemtype);
|
||||
|
||||
graphic_console_init(ds, pxa2xx_update_display,
|
||||
pxa2xx_invalidate_display, pxa2xx_screen_dump, NULL, s);
|
||||
s->console = graphic_console_init(ds, pxa2xx_update_display,
|
||||
pxa2xx_invalidate_display,
|
||||
pxa2xx_screen_dump, NULL, s);
|
||||
|
||||
switch (s->ds->depth) {
|
||||
case 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue