From e444ea34f8ec27acfa9ead7eaa9904238c831e69 Mon Sep 17 00:00:00 2001 From: Max Reitz Date: Tue, 3 Mar 2015 12:25:27 -0500 Subject: sdl2: Fix RGB555 Reproducable with: $ x86_64-softmmu/qemu-system-x86_64 \ -kernel $vmlinuz_of_your_choice \ -append vga=0x313 -sdl Signed-off-by: Max Reitz Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/ui') diff --git a/include/ui/console.h b/include/ui/console.h index d211692..0b75896 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -280,6 +280,11 @@ static inline int surface_bytes_per_pixel(DisplaySurface *s) return (bits + 7) / 8; } +static inline pixman_format_code_t surface_format(DisplaySurface *s) +{ + return s->format; +} + #ifdef CONFIG_CURSES #include typedef chtype console_ch_t; -- cgit v1.1