diff options
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/console.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <curses.h> typedef chtype console_ch_t; |