Create video_driver_get_st_flags

This commit is contained in:
LibretroAdmin 2022-10-26 22:35:04 +02:00
parent e8f4268e6e
commit c0d6d6e750
4 changed files with 12 additions and 4 deletions

View File

@ -848,12 +848,12 @@ static void win32_save_position(void)
if (window_save_positions)
{
video_driver_state_t *video_st = video_state_get_ptr();
uint32_t video_st_flags = video_driver_get_st_flags();
bool video_fullscreen = settings->bools.video_fullscreen;
if ( !video_fullscreen
&& !(video_st->flags & VIDEO_FLAG_FORCE_FULLSCREEN)
&& !(video_st->flags & VIDEO_FLAG_IS_SWITCHING_DISPLAY_MODE))
&& !(video_st_flags & VIDEO_FLAG_FORCE_FULLSCREEN)
&& !(video_st_flags & VIDEO_FLAG_IS_SWITCHING_DISPLAY_MODE))
{
bool ui_menubar_enable = settings->bools.ui_menubar_enable;
bool window_show_decor = settings->bools.video_window_show_decorations;

View File

@ -4358,3 +4358,9 @@ void video_frame_delay_auto(video_driver_state_t *video_st, video_frame_delay_au
);
#endif
}
uint32_t video_driver_get_st_flags(void)
{
video_driver_state_t *video_st = &video_driver_st;
return video_st->flags;
}

View File

@ -1399,6 +1399,8 @@ void video_driver_set_viewport_config(
void video_driver_set_viewport_square_pixel(struct retro_game_geometry *geom);
uint32_t video_driver_get_st_flags(void);
bool video_driver_init_internal(bool *video_is_threaded, bool verbosity_enabled);
/**

View File

@ -3823,7 +3823,7 @@ int rarch_main(int argc, char *argv[], void *data)
audio_state_get_ptr()->flags |= AUDIO_FLAG_ACTIVE;
{
unsigned i;
int i;
for (i = 0; i < MAX_USERS; i++)
input_config_set_device(i, RETRO_DEVICE_JOYPAD);
}