vmware_vga: Cleanup and remove duplicated info from local state
PATCH v2 1/3 vmware_vga: Cleanup and remove duplicated info from local state
Removed info from vmsvga_state that is available from elsewhere and thus was duplicated here unnecessarily. Also includes some coding style fixes suggested by checkpatch.pl.
Signed-off-by BALATON Zoltan <[email protected]>
--- console.h | 20 ++++++ hw/vmware_vga.c | 196 +++++++++++++++++++++++-------------------------------- 2 files changed, 102 insertions(+), 114 deletions(-)
v2: Rebase to apply to current
console.h +20 -0
@@ -330,6 +330,26 @@ static inline int ds_get_bytes_per_pixel(DisplayState *ds)return ds->surface->pf.bytes_per_pixel; } +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 ;
hw/vmware_vga.c +82 -114
408 lines not on this page · raw message
Signature · 1 line
1.7.10