From aa32b38c5b2eb1afe30b3292454411bb760a432d Mon Sep 17 00:00:00 2001 From: BALATON Zoltan Date: Sat, 3 Nov 2012 12:47:08 +0100 Subject: vmware_vga: Remove duplicated info from local state Removed info from vmsvga_state that is available from elsewhere and thus was duplicated here unnecessarily. Signed-off-by: BALATON Zoltan Signed-off-by: Blue Swirl --- console.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'console.h') diff --git a/console.h b/console.h index 0df033d..70c9a55 100644 --- a/console.h +++ b/console.h @@ -377,6 +377,26 @@ static inline pixman_format_code_t ds_get_format(DisplayState *ds) return ds->surface->format; } +static inline int ds_get_depth(DisplayState *ds) +{ + return ds->surface->pf.depth; +} + +static inline int ds_get_rmask(DisplayState *ds) +{ + return ds->surface->pf.rmask; +} + +static inline int ds_get_gmask(DisplayState *ds) +{ + return ds->surface->pf.gmask; +} + +static inline int ds_get_bmask(DisplayState *ds) +{ + return ds->surface->pf.bmask; +} + #ifdef CONFIG_CURSES #include typedef chtype console_ch_t; -- cgit v1.1