Skip to content

Commit

Permalink
video_monitor_compute_fps_statistics - turn static
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Sep 11, 2024
1 parent 23bd968 commit 787c1e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
6 changes: 3 additions & 3 deletions gfx/video_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ bool video_driver_translate_coord_viewport(
return true;
}

void video_monitor_compute_fps_statistics(uint64_t
static void video_monitor_compute_fps_statistics(uint64_t
frame_time_count)
{
double avg_fps = 0.0;
Expand Down Expand Up @@ -1217,7 +1217,7 @@ bool video_display_server_has_refresh_rate(float hz)
{
/* Float difference added to enable 49.95Hz modelines for PAL. *
* Actual mode selection will be done in context driver, *
* with some logic in video_switch_refresh_rate_maybe *
* with some logic in video_switch_refresh_rate_maybe *
* and in action_cb_push_dropdown_item_resolution */
if ( (video_list[i].width == video_driver_width)
&& (video_list[i].height == video_driver_height)
Expand Down Expand Up @@ -2056,7 +2056,7 @@ void video_viewport_get_scaled_aspect2(struct video_viewport *vp, unsigned viewp
settings_t *settings = config_get_ptr();
int x = 0;
int y = 0;

float viewport_bias_x = settings->floats.video_viewport_bias_x;
float viewport_bias_y = settings->floats.video_viewport_bias_y;
#if defined(RARCH_MOBILE)
Expand Down
8 changes: 0 additions & 8 deletions gfx/video_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -1042,14 +1042,6 @@ void video_viewport_get_scaled_aspect2(struct video_viewport *vp,
**/
void video_monitor_set_refresh_rate(float hz);

/**
* video_monitor_compute_fps_statistics:
*
* Computes monitor FPS statistics.
**/
void video_monitor_compute_fps_statistics(uint64_t
frame_time_count);

/**
* video_monitor_fps_statistics
* @refresh_rate : Monitor refresh rate.
Expand Down

0 comments on commit 787c1e1

Please sign in to comment.