~ubuntu-bugs-auftrags-killer/qemu/proper-error-characters

« back to all changes in this revision

Viewing changes to hw/omap_lcdc.c

  • Committer: pbrook
  • Date: 2008-07-01 16:24:38 UTC
  • Revision ID: git-v1:c60e08d9c6bbace33c04dab2b5cacbc42e2e3d47
Implement resolution switching in common console code.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4812 c046a42c-6fe2-441c-8c8c-71466251a162

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    target_phys_addr_t base;
27
27
    qemu_irq irq;
28
28
    DisplayState *state;
 
29
    QEMUConsole *console;
29
30
    ram_addr_t imif_base;
30
31
    ram_addr_t emiff_base;
31
32
 
175
176
    width = omap_lcd->width;
176
177
    if (width != omap_lcd->state->width ||
177
178
            omap_lcd->height != omap_lcd->state->height) {
178
 
        dpy_resize(omap_lcd->state,
179
 
                omap_lcd->width, omap_lcd->height);
 
179
        qemu_console_resize(omap_lcd->console,
 
180
                            omap_lcd->width, omap_lcd->height);
180
181
        omap_lcd->invalidate = 1;
181
182
    }
182
183
 
494
495
                    omap_lcdc_writefn, s);
495
496
    cpu_register_physical_memory(s->base, 0x100, iomemtype);
496
497
 
497
 
    graphic_console_init(ds, omap_update_display,
498
 
                    omap_invalidate_display, omap_screen_dump, NULL, s);
 
498
    s->console = graphic_console_init(ds, omap_update_display,
 
499
                                      omap_invalidate_display,
 
500
                                      omap_screen_dump, NULL, s);
499
501
 
500
502
    return s;
501
503
}