mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-14 15:35:45 -04:00
HostDisplay: Manually throttle fullscreen UI presentation
Fixes flickering screen in fullscreen with Vulkan.
This commit is contained in:
@ -352,9 +352,9 @@ void Host::OnInputDeviceDisconnected(const std::string_view& identifier)
|
||||
// noop
|
||||
}
|
||||
|
||||
void* Host::GetTopLevelWindowHandle()
|
||||
std::optional<WindowInfo> Host::GetTopLevelWindowInfo()
|
||||
{
|
||||
return nullptr;
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
void Host::RefreshGameListAsync(bool invalidate_cache)
|
||||
|
@ -38,7 +38,7 @@ bool RegTestHostDisplay::HasSurface() const
|
||||
return true;
|
||||
}
|
||||
|
||||
bool RegTestHostDisplay::CreateDevice(const WindowInfo& wi)
|
||||
bool RegTestHostDisplay::CreateDevice(const WindowInfo& wi, bool vsync)
|
||||
{
|
||||
m_window_info = wi;
|
||||
return true;
|
||||
|
@ -15,7 +15,7 @@ public:
|
||||
bool HasDevice() const override;
|
||||
bool HasSurface() const override;
|
||||
|
||||
bool CreateDevice(const WindowInfo& wi) override;
|
||||
bool CreateDevice(const WindowInfo& wi, bool vsync) override;
|
||||
bool SetupDevice() override;
|
||||
|
||||
bool MakeCurrent() override;
|
||||
|
Reference in New Issue
Block a user