Skip to content

Commit

Permalink
Merge pull request #25164 from enen92/drop_window_dirty
Browse files Browse the repository at this point in the history
Rendering: drop markwindow dirty after setrendergui change
  • Loading branch information
enen92 committed May 9, 2024
2 parents 161ccd0 + f03ee2c commit fe2b373
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 1 addition & 10 deletions xbmc/application/Application.cpp
Expand Up @@ -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())
{
Expand Down
2 changes: 0 additions & 2 deletions xbmc/application/Application.h
Expand Up @@ -24,7 +24,6 @@
#include <atomic>
#include <chrono>
#include <memory>
#include <optional>
#include <string>
#include <vector>

Expand Down Expand Up @@ -219,7 +218,6 @@ class CApplication : public IWindowManagerCallback,

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;

Expand Down

0 comments on commit fe2b373

Please sign in to comment.