From 6a0677a407bf16219905fba24414faff4136a388 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 5 Jan 2015 02:53:29 -0800 Subject: [PATCH] win-capture: Rename variables for consistency Variables that track time should not have the name 'interval', they should have the name 'time' instead so it's crystal clear that the variable is tracking time. --- plugins/win-capture/game-capture.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/win-capture/game-capture.c b/plugins/win-capture/game-capture.c index 6ce3be8c6..3e3b211cb 100644 --- a/plugins/win-capture/game-capture.c +++ b/plugins/win-capture/game-capture.c @@ -75,8 +75,8 @@ struct game_capture { DWORD thread_id; HWND next_window; HWND window; - float check_interval; - float fps_reset_interval; + float retry_time; + float fps_reset_time; float retry_interval; bool active : 1; bool activate_hook : 1; @@ -951,15 +951,15 @@ static void game_capture_tick(void *data, float seconds) } } - gc->check_interval += seconds; + gc->retry_time += seconds; if (!gc->active) { if (!gc->error_acquiring && - gc->check_interval > gc->retry_interval) { + gc->retry_time > gc->retry_interval) { if (gc->config.capture_any_fullscreen || gc->activate_hook) { try_hook(gc); - gc->check_interval = 0.0f; + gc->retry_time = 0.0f; } } } else { @@ -981,10 +981,10 @@ static void game_capture_tick(void *data, float seconds) obs_leave_graphics(); } - gc->fps_reset_interval += seconds; - if (gc->fps_reset_interval >= gc->retry_interval) { + gc->fps_reset_time += seconds; + if (gc->fps_reset_time >= gc->retry_interval) { reset_frame_interval(gc); - gc->fps_reset_interval = 0.0f; + gc->fps_reset_time = 0.0f; } } }