mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-30 19:50:24 +00:00
Add files via upload
Fixed errors after variable changes
This commit is contained in:
parent
cf422226e6
commit
d7d1d1d5b8
@ -33,7 +33,7 @@ void check_first_run()
|
|||||||
first_run = 1;
|
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 */
|
{ /* Place holder for Linux function to swith resolutions */
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,5 +17,5 @@
|
|||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
void check_first_run();
|
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();
|
void video_restore();
|
@ -115,7 +115,11 @@ void switch_res_crt(int width, int height){
|
|||||||
if ( height > 100)
|
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();
|
crt_poke_video();
|
||||||
ra_tmp_height = ra_core_height;
|
ra_tmp_height = ra_core_height;
|
||||||
ra_tmp_width = ra_core_width;
|
ra_tmp_width = ra_core_width;
|
||||||
|
@ -29,5 +29,4 @@ void screen_setup_aspect(int width, int height);
|
|||||||
void switch_res_crt(int width, int height);
|
void switch_res_crt(int width, int height);
|
||||||
void aspect_ratio_switch(int width,int height);
|
void aspect_ratio_switch(int width,int height);
|
||||||
void switch_crt_hz();
|
void switch_crt_hz();
|
||||||
void switch_res(int width, int height, int f_restore);
|
|
||||||
void video_restore();
|
void video_restore();
|
@ -35,9 +35,8 @@ void check_first_run()
|
|||||||
first_run = 1;
|
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 */
|
{ /* windows function to swith resolutions */
|
||||||
|
|
||||||
DEVMODE curDevmode;
|
DEVMODE curDevmode;
|
||||||
DEVMODE devmode;
|
DEVMODE devmode;
|
||||||
DWORD flags = 0;
|
DWORD flags = 0;
|
||||||
@ -46,7 +45,7 @@ void switch_res(int width, int height, int f_restore)
|
|||||||
int freq;
|
int freq;
|
||||||
if (f_restore == 0)
|
if (f_restore == 0)
|
||||||
{
|
{
|
||||||
freq = ra_set_core_hz;
|
freq = ra_hz;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -146,5 +145,5 @@ void switch_res(int width, int height, int f_restore)
|
|||||||
|
|
||||||
void video_restore()
|
void video_restore()
|
||||||
{
|
{
|
||||||
switch_res(orig_width, orig_height,1);
|
switch_res(orig_width, orig_height,0,60);
|
||||||
}
|
}
|
||||||
|
@ -18,5 +18,5 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
void check_first_run();
|
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();
|
void video_restore();
|
Loading…
Reference in New Issue
Block a user