engine: platform: pass desired window mode through R_ChangeDisplaySettings

This commit is contained in:
Alibek Omarov 2023-10-10 14:11:06 +03:00
parent 7222c74000
commit 680ecfefab
1 changed files with 2 additions and 1 deletions

View File

@ -205,11 +205,12 @@ typedef enum
} rserr_t; } rserr_t;
struct vidmode_s; struct vidmode_s;
typedef enum window_mode_e window_mode_t;
// Window // Window
qboolean R_Init_Video( const int type ); qboolean R_Init_Video( const int type );
void R_Free_Video( void ); void R_Free_Video( void );
qboolean VID_SetMode( void ); qboolean VID_SetMode( void );
rserr_t R_ChangeDisplaySettings( int width, int height, qboolean fullscreen ); rserr_t R_ChangeDisplaySettings( int width, int height, window_mode_t window_mode );
int R_MaxVideoModes( void ); int R_MaxVideoModes( void );
struct vidmode_s *R_GetVideoMode( int num ); struct vidmode_s *R_GetVideoMode( int num );
void* GL_GetProcAddress( const char *name ); // RenderAPI requirement void* GL_GetProcAddress( const char *name ); // RenderAPI requirement