sdl shared buffer support
PATCH 1/1 sdl shared buffer support
Signed-off-by Stefano Stabellini <[email protected]>
--- console.h | 1 + hw/vga.c | 1 + sdl.c | 130 ++++++++++++++++++++++++++++++++++++++++++++++++------------ 3 files changed, 106 insertions(+), 26 deletions(-)
console.h +1 -0
@@ -81,6 +81,7 @@ struct DisplayState {int width;int height;void *opaque; +uint32_t *palette;struct QEMUTimer *gui_timer;uint64_t gui_timer_interval;int idle;/* there is nothing to update (window invisible), set by vnc/sdl */
hw/vga.c +1 -0
@@ -2026,6 +2026,7 @@ void vga_common_init(VGAState *s, DisplayState *ds, uint8_t *vga_ram_base, s->vram_offset = vga_ram_offset; s->vram_size = vga_ram_size; s->ds = ds; + ds->palette = s->last_palette; s->get_bpp = vga_get_bpp; s->get_offsets = vga_get_offsets; s->get_resolution = vga_get_resolution;
sdl.c +104 -26
182 lines not on this page · raw message
Signature · 1 line
1.5.4.3