mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 14:23:06 +00:00
Cleanups
This commit is contained in:
parent
281dd9b4ac
commit
bac9973354
@ -1318,7 +1318,7 @@ static bool gl_frame(void *data, const void *frame,
|
|||||||
* and pause to prevent flicker. */
|
* and pause to prevent flicker. */
|
||||||
if (
|
if (
|
||||||
video_info->black_frame_insertion
|
video_info->black_frame_insertion
|
||||||
&& !input_driver_is_nonblock_state()
|
&& !video_info->input_driver_nonblock_state
|
||||||
&& !video_info->runloop_is_slowmotion
|
&& !video_info->runloop_is_slowmotion
|
||||||
&& !video_info->runloop_is_paused)
|
&& !video_info->runloop_is_paused)
|
||||||
{
|
{
|
||||||
|
@ -1961,7 +1961,7 @@ static bool vulkan_frame(void *data, const void *frame,
|
|||||||
* and pause to prevent flicker. */
|
* and pause to prevent flicker. */
|
||||||
if (
|
if (
|
||||||
video_info->black_frame_insertion
|
video_info->black_frame_insertion
|
||||||
&& !input_driver_is_nonblock_state()
|
&& !video_info->input_driver_nonblock_state
|
||||||
&& !video_info->runloop_is_slowmotion
|
&& !video_info->runloop_is_slowmotion
|
||||||
&& !video_info->runloop_is_paused)
|
&& !video_info->runloop_is_paused)
|
||||||
{
|
{
|
||||||
|
@ -53,6 +53,7 @@
|
|||||||
#include "../driver.h"
|
#include "../driver.h"
|
||||||
#include "../retroarch.h"
|
#include "../retroarch.h"
|
||||||
#include "../runloop.h"
|
#include "../runloop.h"
|
||||||
|
#include "../input/input_driver.h"
|
||||||
#include "../list_special.h"
|
#include "../list_special.h"
|
||||||
#include "../core.h"
|
#include "../core.h"
|
||||||
#include "../command.h"
|
#include "../command.h"
|
||||||
@ -2338,6 +2339,8 @@ void video_driver_build_info(video_frame_info_t *video_info)
|
|||||||
video_info->runloop_is_paused = is_paused;
|
video_info->runloop_is_paused = is_paused;
|
||||||
video_info->runloop_is_idle = is_idle;
|
video_info->runloop_is_idle = is_idle;
|
||||||
video_info->runloop_is_slowmotion = is_slowmotion;
|
video_info->runloop_is_slowmotion = is_slowmotion;
|
||||||
|
|
||||||
|
video_info->input_driver_nonblock_state = input_driver_is_nonblock_state();
|
||||||
#ifdef HAVE_THREADS
|
#ifdef HAVE_THREADS
|
||||||
video_driver_threaded_unlock(is_threaded);
|
video_driver_threaded_unlock(is_threaded);
|
||||||
#endif
|
#endif
|
||||||
|
@ -114,60 +114,57 @@ typedef struct video_info
|
|||||||
|
|
||||||
typedef struct video_frame_info
|
typedef struct video_frame_info
|
||||||
{
|
{
|
||||||
float menu_wallpaper_opacity;
|
bool input_driver_nonblock_state;
|
||||||
float refresh_rate;
|
|
||||||
bool shared_context;
|
bool shared_context;
|
||||||
bool black_frame_insertion;
|
bool black_frame_insertion;
|
||||||
bool hard_sync;
|
bool hard_sync;
|
||||||
unsigned hard_sync_frames;
|
|
||||||
bool fps_show;
|
bool fps_show;
|
||||||
bool scale_integer;
|
bool scale_integer;
|
||||||
unsigned aspect_ratio_idx;
|
|
||||||
bool post_filter_record;
|
bool post_filter_record;
|
||||||
unsigned max_swapchain_images;
|
|
||||||
bool windowed_fullscreen;
|
bool windowed_fullscreen;
|
||||||
bool fullscreen;
|
bool fullscreen;
|
||||||
unsigned monitor_index;
|
|
||||||
bool font_enable;
|
bool font_enable;
|
||||||
char fps_text[128];
|
|
||||||
|
|
||||||
unsigned width;
|
|
||||||
unsigned height;
|
|
||||||
|
|
||||||
float font_msg_pos_x;
|
|
||||||
float font_msg_pos_y;
|
|
||||||
float font_msg_color_r;
|
|
||||||
float font_msg_color_g;
|
|
||||||
float font_msg_color_b;
|
|
||||||
bool use_rgba;
|
bool use_rgba;
|
||||||
bool libretro_running;
|
bool libretro_running;
|
||||||
|
|
||||||
float menu_header_opacity;
|
|
||||||
float menu_footer_opacity;
|
|
||||||
|
|
||||||
bool xmb_shadows_enable;
|
bool xmb_shadows_enable;
|
||||||
float xmb_alpha_factor;
|
|
||||||
unsigned xmb_theme;
|
|
||||||
unsigned xmb_color_theme;
|
|
||||||
unsigned menu_shader_pipeline;
|
|
||||||
|
|
||||||
unsigned materialui_color_theme;
|
|
||||||
|
|
||||||
bool battery_level_enable;
|
bool battery_level_enable;
|
||||||
bool timedate_enable;
|
bool timedate_enable;
|
||||||
bool runloop_is_slowmotion;
|
bool runloop_is_slowmotion;
|
||||||
bool runloop_is_idle;
|
bool runloop_is_idle;
|
||||||
bool runloop_is_paused;
|
bool runloop_is_paused;
|
||||||
bool is_perfcnt_enable;
|
bool is_perfcnt_enable;
|
||||||
|
|
||||||
bool menu_is_alive;
|
bool menu_is_alive;
|
||||||
|
|
||||||
int custom_vp_x;
|
int custom_vp_x;
|
||||||
int custom_vp_y;
|
int custom_vp_y;
|
||||||
|
|
||||||
|
unsigned hard_sync_frames;
|
||||||
|
unsigned aspect_ratio_idx;
|
||||||
|
unsigned max_swapchain_images;
|
||||||
|
unsigned monitor_index;
|
||||||
|
unsigned width;
|
||||||
|
unsigned height;
|
||||||
|
unsigned xmb_theme;
|
||||||
|
unsigned xmb_color_theme;
|
||||||
|
unsigned menu_shader_pipeline;
|
||||||
|
unsigned materialui_color_theme;
|
||||||
unsigned custom_vp_width;
|
unsigned custom_vp_width;
|
||||||
unsigned custom_vp_height;
|
unsigned custom_vp_height;
|
||||||
unsigned custom_vp_full_width;
|
unsigned custom_vp_full_width;
|
||||||
unsigned custom_vp_full_height;
|
unsigned custom_vp_full_height;
|
||||||
|
|
||||||
|
float menu_wallpaper_opacity;
|
||||||
|
float refresh_rate;
|
||||||
|
float font_msg_pos_x;
|
||||||
|
float font_msg_pos_y;
|
||||||
|
float font_msg_color_r;
|
||||||
|
float font_msg_color_g;
|
||||||
|
float font_msg_color_b;
|
||||||
|
float menu_header_opacity;
|
||||||
|
float menu_footer_opacity;
|
||||||
|
float xmb_alpha_factor;
|
||||||
|
|
||||||
|
char fps_text[128];
|
||||||
} video_frame_info_t;
|
} video_frame_info_t;
|
||||||
|
|
||||||
/* Optionally implemented interface to poke more
|
/* Optionally implemented interface to poke more
|
||||||
|
@ -1015,10 +1015,11 @@ void input_driver_poll(void)
|
|||||||
|
|
||||||
bool input_driver_init(void)
|
bool input_driver_init(void)
|
||||||
{
|
{
|
||||||
settings_t *settings = config_get_ptr();
|
|
||||||
|
|
||||||
if (current_input)
|
if (current_input)
|
||||||
|
{
|
||||||
|
settings_t *settings = config_get_ptr();
|
||||||
current_input_data = current_input->init(settings->arrays.input_joypad_driver);
|
current_input_data = current_input->init(settings->arrays.input_joypad_driver);
|
||||||
|
}
|
||||||
|
|
||||||
if (!current_input_data)
|
if (!current_input_data)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user