summaryrefslogtreecommitdiffstats
path: root/console.h
diff options
context:
space:
mode:
authorBALATON Zoltan <balaton@eik.bme.hu>2012-11-03 12:47:08 +0100
committerBlue Swirl <blauwirbel@gmail.com>2012-11-03 13:26:52 +0000
commitaa32b38c5b2eb1afe30b3292454411bb760a432d (patch)
treea9e6affb7f033e92044c9c6140ccde768e41bdb6 /console.h
parent0d7937974cd0504f30ad483c3368b21da426ddf9 (diff)
downloadhqemu-aa32b38c5b2eb1afe30b3292454411bb760a432d.zip
hqemu-aa32b38c5b2eb1afe30b3292454411bb760a432d.tar.gz
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 <balaton@eik.bme.hu> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'console.h')
-rw-r--r--console.h20
1 files changed, 20 insertions, 0 deletions
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 <curses.h>
typedef chtype console_ch_t;
OpenPOWER on IntegriCloud