mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
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:
@ -19,7 +19,6 @@ class VideoBackend : public VideoBackendHardware
|
||||
|
||||
void ShowConfig(void* parent) override;
|
||||
|
||||
void UpdateFPSDisplay(const std::string&) override;
|
||||
unsigned int PeekMessages() override;
|
||||
|
||||
void* m_window_handle;
|
||||
|
@ -51,12 +51,6 @@ unsigned int VideoBackend::PeekMessages()
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void VideoBackend::UpdateFPSDisplay(const std::string& text)
|
||||
{
|
||||
std::string str = StringFromFormat("%s | D3D | %s", scm_rev_str, text.c_str());
|
||||
SetWindowTextA((HWND)m_window_handle, str.c_str());
|
||||
}
|
||||
|
||||
std::string VideoBackend::GetName() const
|
||||
{
|
||||
return "D3D";
|
||||
|
@ -25,7 +25,6 @@ protected:
|
||||
u32 s_opengl_mode;
|
||||
public:
|
||||
virtual void Swap() {}
|
||||
virtual void UpdateFPSDisplay(const std::string& text) {}
|
||||
virtual void SetMode(u32 mode) { s_opengl_mode = GLInterfaceMode::MODE_OPENGL; }
|
||||
virtual u32 GetMode() { return s_opengl_mode; }
|
||||
virtual void* GetFuncAddress(const std::string& name) { return nullptr; }
|
||||
|
@ -26,12 +26,6 @@ unsigned int VideoBackend::PeekMessages()
|
||||
return GLInterface->PeekMessages();
|
||||
}
|
||||
|
||||
// Show the current FPS
|
||||
void VideoBackend::UpdateFPSDisplay(const std::string& text)
|
||||
{
|
||||
return GLInterface->UpdateFPSDisplay(StringFromFormat("%s | %s | %s", scm_rev_str, GetDisplayName().c_str(), text.c_str()));
|
||||
}
|
||||
|
||||
}
|
||||
void InitInterface()
|
||||
{
|
||||
|
@ -19,7 +19,6 @@ class VideoBackend : public VideoBackendHardware
|
||||
|
||||
void ShowConfig(void* parent) override;
|
||||
|
||||
void UpdateFPSDisplay(const std::string&) override;
|
||||
unsigned int PeekMessages() override;
|
||||
};
|
||||
|
||||
|
@ -372,10 +372,4 @@ unsigned int VideoSoftware::PeekMessages()
|
||||
return GLInterface->PeekMessages();
|
||||
}
|
||||
|
||||
// Show the current FPS
|
||||
void VideoSoftware::UpdateFPSDisplay(const std::string& text)
|
||||
{
|
||||
GLInterface->UpdateFPSDisplay(StringFromFormat("%s | Software | %s", scm_rev_str, text.c_str()));
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -48,7 +48,6 @@ class VideoSoftware : public VideoBackend
|
||||
|
||||
void RegisterCPMMIO(MMIO::Mapping* mmio, u32 base) override;
|
||||
|
||||
void UpdateFPSDisplay(const std::string&) override;
|
||||
unsigned int PeekMessages() override;
|
||||
|
||||
void PauseAndLock(bool doLock, bool unpauseOnUnlock=true) override;
|
||||
|
Reference in New Issue
Block a user