From 7d07130942cea80e536e4aadc2f847dc5d0a2b5c Mon Sep 17 00:00:00 2001 From: alphanu1 <37101891+alphanu1@users.noreply.github.com> Date: Wed, 13 Feb 2019 15:33:10 +0000 Subject: [PATCH] Update video_crt_switch.c --- gfx/video_crt_switch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gfx/video_crt_switch.c b/gfx/video_crt_switch.c index 56cf854203..085dfd8cd7 100644 --- a/gfx/video_crt_switch.c +++ b/gfx/video_crt_switch.c @@ -42,6 +42,7 @@ static unsigned orig_width = 0; static unsigned orig_height = 0; static int crt_center_adjust = 0; static int crt_tmp_center_adjust = 0; +static double p_clock = 0; static bool first_run = true; @@ -239,12 +240,12 @@ void crt_video_restore(void) int crt_compute_dynamic_width(int width) { - double p_clock = 15000000; + p_clock = 15000000; int min_height = 261; int dynamic_width = 0; #if defined(HAVE_VIDEOCORE) - double p_clock = 32000000; + p_clock = 32000000; #endif