Fix some warnings

This commit is contained in:
LibretroAdmin 2025-01-20 01:30:07 +01:00
parent 1f2b299e00
commit 350e4faf79
2 changed files with 21 additions and 19 deletions

View File

@ -43,27 +43,14 @@
RETRO_BEGIN_DECLS
typedef struct d3d9_video d3d9_video_t;
typedef struct d3d9_video
{
bool keep_aspect;
bool should_resize;
bool quitting;
bool needs_restore;
bool overlays_enabled;
/* TODO - refactor this away properly. */
bool resolution_hd_enable;
/* Only used for Xbox */
bool widescreen_mode;
unsigned cur_mon_id;
unsigned dev_rotation;
overlay_t *menu;
void *renderchain_data;
char *shader_path;
overlay_t *overlays;
RECT font_rect;
RECT font_rect_shifted;
math_matrix_4x4 mvp;
@ -81,8 +68,6 @@ typedef struct d3d9_video
float translate_x;
float translate_y;
char *shader_path;
struct
{
int size;
@ -92,7 +77,20 @@ typedef struct d3d9_video
}menu_display;
size_t overlays_size;
overlay_t *overlays;
unsigned cur_mon_id;
unsigned dev_rotation;
bool keep_aspect;
bool should_resize;
bool quitting;
bool needs_restore;
bool overlays_enabled;
/* TODO - refactor this away properly. */
bool resolution_hd_enable;
/* Only used for Xbox */
bool widescreen_mode;
} d3d9_video_t;
void *d3d9_vertex_buffer_new(void *dev,

View File

@ -4670,7 +4670,9 @@ void video_frame_delay_auto(video_driver_state_t *video_st, video_frame_delay_au
uint8_t count_pos = 0;
uint8_t count_min = 0;
uint8_t count_med = 0;
#if FRAME_DELAY_AUTO_DEBUG
uint8_t count_max = 0;
#endif
int8_t mode = 0;
/* Calculate average frame time */
@ -4699,8 +4701,10 @@ void video_frame_delay_auto(video_driver_state_t *video_st, video_frame_delay_au
count_min++;
if (frame_time_i > frame_time_limit_med)
count_med++;
#if FRAME_DELAY_AUTO_DEBUG
if (frame_time_i > frame_time_limit_max)
count_max++;
#endif
}
frame_time_avg += frame_time_i;