Core: Remove UpdateFPSDisplay

This is effectively unused, as the window handles that we pass to the
GLInterface are window handles for the frame which isn't ever a real
toplevel window. Host_UpdateTitle is what actually sets the proper title
on the render window.
This commit is contained in:
Jasper St. Pierre
2014-08-06 22:38:39 -04:00
parent 7ca8d8dfc7
commit 63f1a16969
16 changed files with 0 additions and 49 deletions

View File

@ -7,9 +7,6 @@
#include "VideoCommon/RenderBase.h"
// Show the current FPS
void cInterfaceEGL::UpdateFPSDisplay(const std::string& text)
{
}
void cInterfaceEGL::Swap()
{
eglSwapBuffers(GLWin.egl_dpy, GLWin.egl_surf);

View File

@ -18,7 +18,6 @@ public:
void SwapInterval(int Interval);
void Swap();
void SetMode(u32 mode) { s_opengl_mode = mode; }
void UpdateFPSDisplay(const std::string& text);
void* GetFuncAddress(const std::string& name);
bool Create(void *window_handle);
bool MakeCurrent();

View File

@ -12,12 +12,6 @@
typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
static PFNGLXSWAPINTERVALSGIPROC glXSwapIntervalSGI = nullptr;
// Show the current FPS
void cInterfaceGLX::UpdateFPSDisplay(const std::string& text)
{
XStoreName(GLWin.dpy, GLWin.win, text.c_str());
}
void cInterfaceGLX::SwapInterval(int Interval)
{
if (glXSwapIntervalSGI)

View File

@ -17,7 +17,6 @@ public:
friend class cX11Window;
void SwapInterval(int Interval) override;
void Swap() override;
void UpdateFPSDisplay(const std::string& text) override;
void* GetFuncAddress(const std::string& name) override;
bool Create(void *window_handle);
bool MakeCurrent() override;

View File

@ -55,12 +55,6 @@ bool cInterfaceWGL::PeekMessages()
return TRUE;
}
// Show the current FPS
void cInterfaceWGL::UpdateFPSDisplay(const std::string& text)
{
SetWindowTextA(m_window_handle, text.c_str());
}
// Create rendering window.
// Call browser: Core.cpp:EmuThread() > main.cpp:Video_Initialize()
bool cInterfaceWGL::Create(void *window_handle)

View File

@ -12,7 +12,6 @@ class cInterfaceWGL : public cInterfaceBase
public:
void SwapInterval(int Interval);
void Swap();
void UpdateFPSDisplay(const std::string& text);
void* GetFuncAddress(const std::string& name);
bool Create(void *window_handle);
bool MakeCurrent();