aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Borges de Freitas <92enen@gmail.com>2024-05-09 17:02:03 +0100
committerGitHub <noreply@github.com>2024-05-09 17:02:03 +0100
commitfe2b3736567a6e57daaad39d24ef120bc531a3f2 (patch)
tree69cac5d922872286ef0223dbbb4b3428be6f2028
parent161ccd09dca7980500bccc06e5b6012c11ea9a8b (diff)
parentf03ee2cc09c42cf7d62797c91b7d9e3b38313044 (diff)
downloadxbmc-fe2b3736567a6e57daaad39d24ef120bc531a3f2.tar.xz
Merge pull request #25164 from enen92/drop_window_dirty
Rendering: drop markwindow dirty after setrendergui change
-rw-r--r--xbmc/application/Application.cpp11
-rw-r--r--xbmc/application/Application.h2
2 files changed, 1 insertions, 12 deletions
diff --git a/xbmc/application/Application.cpp b/xbmc/application/Application.cpp
index 1f5c65f64e..8cb1731647 100644
--- a/xbmc/application/Application.cpp
+++ b/xbmc/application/Application.cpp
@@ -810,16 +810,7 @@ void CApplication::Render()
return;
// render gui layer
- const bool renderGUI = appPower->GetRenderGUI();
- if (m_guiRenderLastState != std::nullopt && renderGUI && m_guiRenderLastState != renderGUI)
- {
- CGUIComponent* gui = CServiceBroker::GetGUI();
- if (gui)
- CServiceBroker::GetGUI()->GetWindowManager().MarkDirty();
- }
- m_guiRenderLastState = renderGUI;
-
- if (renderGUI && !m_skipGuiRender)
+ if (appPower->GetRenderGUI() && !m_skipGuiRender)
{
if (CServiceBroker::GetWinSystem()->GetGfxContext().GetStereoMode())
{
diff --git a/xbmc/application/Application.h b/xbmc/application/Application.h
index b3eaeb5bd4..d31e591bcd 100644
--- a/xbmc/application/Application.h
+++ b/xbmc/application/Application.h
@@ -24,7 +24,6 @@
#include <atomic>
#include <chrono>
#include <memory>
-#include <optional>
#include <string>
#include <vector>
@@ -219,7 +218,6 @@ protected:
std::chrono::time_point<std::chrono::steady_clock> m_lastRenderTime;
bool m_skipGuiRender = false;
- std::optional<bool> m_guiRenderLastState;
std::unique_ptr<MUSIC_INFO::CMusicInfoScanner> m_musicInfoScanner;