From d595ffe76fa849e0f638d570e6090baaa654f68b Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Tue, 21 Jan 2020 17:34:04 +0800 Subject: [PATCH] add a flag to video info: hw_cursor --- src/include/newgal.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/include/newgal.h b/src/include/newgal.h index 039d88ef..679260bf 100644 --- a/src/include/newgal.h +++ b/src/include/newgal.h @@ -232,8 +232,8 @@ typedef struct GAL_Surface { /* Useful for determining the video hardware capabilities */ typedef struct { Uint32 hw_available :1; /* Flag: Can you create hardware surfaces? */ + Uint32 hw_cursor :1; /* Flag: Can you create hardware cursor? */ Uint32 mlt_surfaces :1; /* Flag: Does VideoInit return different surfaces? */ - Uint32 UnusedBits :8; /* Flag: Can you talk to a window manager? */ Uint32 blit_hw :1; /* Flag: Accelerated blits HW --> HW */ Uint32 blit_hw_CC :1; /* Flag: Accelerated blits with Colorkey */ Uint32 blit_hw_A :1; /* Flag: Accelerated blits with Alpha */ @@ -241,7 +241,8 @@ typedef struct { Uint32 blit_sw_CC :1; /* Flag: Accelerated blits with Colorkey */ Uint32 blit_sw_A :1; /* Flag: Accelerated blits with Alpha */ Uint32 blit_fill :1; /* Flag: Accelerated color fill */ - Uint32 UnusedBits3 :16; + Uint32 UnusedBits1 :6; + Uint32 UnusedBits2 :16; Uint32 video_mem; /* The total amount of video memory (in K) */ GAL_PixelFormat *vfmt; /* Value: The format of the video surface */ } GAL_VideoInfo; @@ -557,7 +558,7 @@ void GAL_FreeCursorSurface (GAL_Surface* surface); void GAL_SetCursor (GAL_Surface* surface, int hot_x, int hot_y); /* Move cursor. */ -void GAL_MoveCursor (GAL_VideoDevice* video, int x, int y); +void GAL_MoveCursor (GAL_Surface* surface, int x, int y); #else /* _MGUSE_SHAREDFD */