diff --git a/gfx/video_crt_linux.c b/gfx/video_crt_linux.c index f21632c648..89bd46ff6c 100644 --- a/gfx/video_crt_linux.c +++ b/gfx/video_crt_linux.c @@ -33,7 +33,7 @@ void check_first_run() first_run = 1; } -void switch_res(int width, int height, int f_restore) +void switch_res(int width, int height, int f_restore, int ra_hz) { /* Place holder for Linux function to swith resolutions */ diff --git a/gfx/video_crt_linux.h b/gfx/video_crt_linux.h index 9982fbf3a3..48a337b961 100644 --- a/gfx/video_crt_linux.h +++ b/gfx/video_crt_linux.h @@ -17,5 +17,5 @@ * If not, see . */ void check_first_run(); -void switch_res(int width, int height, int f_restore); +void switch_res(int width, int height, int f_restore,int ra_hz); void video_restore(); \ No newline at end of file diff --git a/gfx/video_crt_switch.c b/gfx/video_crt_switch.c index a496cf5dee..3a9dfe4a80 100644 --- a/gfx/video_crt_switch.c +++ b/gfx/video_crt_switch.c @@ -114,8 +114,12 @@ void switch_res_crt(int width, int height){ if ( height > 100) { - - switch_res(width, height,0); + + FILE *ben_res = fopen("ra_res_hz.txt", "a"); + fprintf (ben_res, "%s%d%s%d%s%d%s%lf\n","SuperRes @ 2560 ",width," x ", height," @ ", ra_set_core_hz," Apsect ", fly_aspect); + fclose(ben_res); + + switch_res(width, height,0,ra_set_core_hz); crt_poke_video(); ra_tmp_height = ra_core_height; ra_tmp_width = ra_core_width; diff --git a/gfx/video_crt_switch.h b/gfx/video_crt_switch.h index 1ee133c713..cd51ada523 100644 --- a/gfx/video_crt_switch.h +++ b/gfx/video_crt_switch.h @@ -29,5 +29,4 @@ void screen_setup_aspect(int width, int height); void switch_res_crt(int width, int height); void aspect_ratio_switch(int width,int height); void switch_crt_hz(); -void switch_res(int width, int height, int f_restore); void video_restore(); \ No newline at end of file diff --git a/gfx/video_crt_win.c b/gfx/video_crt_win.c index 9296720d5f..6d6264b431 100644 --- a/gfx/video_crt_win.c +++ b/gfx/video_crt_win.c @@ -35,9 +35,8 @@ void check_first_run() first_run = 1; } -void switch_res(int width, int height, int f_restore) +void switch_res(int width, int height, int f_restore,int ra_hz) { /* windows function to swith resolutions */ - DEVMODE curDevmode; DEVMODE devmode; DWORD flags = 0; @@ -46,7 +45,7 @@ void switch_res(int width, int height, int f_restore) int freq; if (f_restore == 0) { - freq = ra_set_core_hz; + freq = ra_hz; } else { @@ -146,5 +145,5 @@ void switch_res(int width, int height, int f_restore) void video_restore() { - switch_res(orig_width, orig_height,1); + switch_res(orig_width, orig_height,0,60); } diff --git a/gfx/video_crt_win.h b/gfx/video_crt_win.h index ec9b68d1f4..b4271264ef 100644 --- a/gfx/video_crt_win.h +++ b/gfx/video_crt_win.h @@ -18,5 +18,5 @@ */ void check_first_run(); -void switch_res(int width, int height, int f_restore); +void switch_res(int width, int height, int f_restore, int ra_hz); void video_restore(); \ No newline at end of file