This commit is contained in:
twinaphex 2016-05-25 18:20:20 +02:00
parent ebb6b2e236
commit 4b35772526
5 changed files with 12 additions and 18 deletions

View File

@ -53,11 +53,6 @@ char retro_cd_base_name[4096];
static char retro_slash = '/';
#endif
static float video_output_framerate(void)
{
return is_pal ? 49.842 : 59.941;
}
static void extract_basename(char *buf, const char *path, size_t size)
{
const char *base = strrchr(path, '/');

View File

@ -1,6 +1,13 @@
#include <boolean.h>
#include "libretro.h"
bool content_is_pal = false;
retro_video_refresh_t video_cb;
retro_environment_t environ_cb;
uint8_t widescreen_hack;
uint8_t psx_gpu_upscale_shift;
float video_output_framerate(void)
{
return content_is_pal ? 49.842 : 59.941;
}

View File

@ -1,14 +1,19 @@
#ifndef __LIBRETRO_CBS_H
#define __LIBRETRO_CBS_H
#include <boolean.h>
#ifdef __cplusplus
extern "C" {
#endif
extern bool content_is_pal;
extern retro_video_refresh_t video_cb;
extern uint8_t widescreen_hack;
extern uint8_t psx_gpu_upscale_shift;
float video_output_framerate(void);
#ifdef __cplusplus
}
#endif

View File

@ -9,8 +9,6 @@
static RetroGl* static_renderer = NULL;
static bool rsx_gl_is_pal = false;
RetroGl* renderer(void)
{
RetroGl* r = static_renderer;
@ -37,8 +35,6 @@ void rsx_gl_init(void)
bool rsx_gl_open(bool is_pal)
{
rsx_gl_is_pal = is_pal;
VideoClock clock = is_pal ? VideoClock_Pal : VideoClock_Ntsc;
set_renderer( RetroGl::getInstance(clock) );

View File

@ -8,17 +8,8 @@
#include "rsx_intf.h"
#include "../libretro_cbs.h"
static bool rsx_is_pal = false;
static float video_output_framerate(void)
{
return rsx_is_pal ? 49.842 : 59.941;
}
bool rsx_soft_open(bool is_pal)
{
rsx_is_pal = is_pal;
return true;
}