gsdx: remove the unused GSsetFrameLimit API

This commit is contained in:
Gregory Hainaut 2017-05-21 21:58:42 +02:00
parent 1279112ac0
commit 36fd2b6854
6 changed files with 1 additions and 27 deletions

View File

@ -592,7 +592,6 @@ typedef void(CALLBACK *_GSprintf)(int timeout, char *fmt, ...);
typedef void(CALLBACK *_GSsetBaseMem)(void *);
typedef void(CALLBACK *_GSsetGameCRC)(int, int);
typedef void(CALLBACK *_GSsetFrameSkip)(int frameskip);
typedef void(CALLBACK *_GSsetFrameLimit)(int limit);
typedef void(CALLBACK *_GSsetVsync)(int enabled);
typedef void(CALLBACK *_GSsetExclusive)(int isExclusive);
typedef int(CALLBACK *_GSsetupRecording)(int, void *);
@ -755,7 +754,6 @@ extern _GSprintf GSprintf;
extern _GSsetBaseMem GSsetBaseMem;
extern _GSsetGameCRC GSsetGameCRC;
extern _GSsetFrameSkip GSsetFrameSkip;
extern _GSsetFrameLimit GSsetFrameLimit;
extern _GSsetVsync GSsetVsync;
extern _GSsetupRecording GSsetupRecording;
extern _GSreset GSreset;

View File

@ -63,7 +63,6 @@ extern bool RunLinuxDialog();
static GSRenderer* s_gs = NULL;
static void (*s_irq)() = NULL;
static uint8* s_basemem = NULL;
static bool s_framelimit = true;
static bool s_vsync = false;
static bool s_exclusive = true;
static const char *s_renderer_name = "";
@ -449,7 +448,6 @@ static int _GSopen(void** dsp, const char* title, GSRendererType renderer, int t
s_gs->SetRegsMem(s_basemem);
s_gs->SetIrqCallback(s_irq);
s_gs->SetVSync(s_vsync);
s_gs->SetFrameLimit(s_framelimit);
if(!old_api)
s_gs->SetMultithreaded(true);
@ -987,16 +985,6 @@ EXPORT_C GSsetExclusive(int enabled)
}
}
EXPORT_C GSsetFrameLimit(int limit)
{
s_framelimit = !!limit;
if(s_gs)
{
s_gs->SetFrameLimit(s_framelimit);
}
}
#ifdef _WIN32
#include <io.h>

View File

@ -34,7 +34,6 @@ GSRenderer::GSRenderer()
: m_shader(0)
, m_shift_key(false)
, m_control_key(false)
, m_framelimit(false)
, m_texture_shuffle(false)
, m_real_size(0,0)
, m_wnd()
@ -73,7 +72,7 @@ bool GSRenderer::CreateDevice(GSDevice* dev)
}
m_dev = dev;
m_dev->SetVSync(m_vsync && m_framelimit);
m_dev->SetVSync(m_vsync);
return true;
}
@ -305,13 +304,6 @@ GSVector2i GSRenderer::GetInternalResolution()
return m_real_size;
}
void GSRenderer::SetFrameLimit(bool limit)
{
m_framelimit = limit;
if(m_dev) m_dev->SetVSync(m_vsync && m_framelimit);
}
void GSRenderer::SetVSync(bool enabled)
{
m_vsync = enabled;

View File

@ -42,7 +42,6 @@ protected:
int m_aspectratio;
bool m_vsync;
bool m_aa1;
bool m_framelimit;
bool m_shaderfx;
bool m_fxaa;
bool m_shadeboost;
@ -71,7 +70,6 @@ public:
GSVector2i GetInternalResolution();
void SetAspectRatio(int aspect) {m_aspectratio = aspect;}
void SetVSync(bool enabled);
void SetFrameLimit(bool limit);
virtual void SetExclusive(bool isExcl) {}
virtual bool BeginCapture();

View File

@ -221,7 +221,6 @@ public:
std::unique_ptr<GSDumpBase> m_dump;
int m_options;
int m_frameskip;
bool m_framelimit;
bool m_NTSC_Saturation;
bool m_nativeres;
int m_mipmap;

View File

@ -36,7 +36,6 @@ EXPORTS
GSsetupRecording
GSsetGameCRC
GSsetFrameSkip
GSsetFrameLimit
GSsetVsync
GSsetExclusive
GSsetSettingsDir