mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Lint fixes
This commit is contained in:
parent
f7ad825736
commit
cf9a6f8477
@ -17,9 +17,9 @@
|
||||
#include "Common/MsgHandler.h"
|
||||
|
||||
#include "VideoBackends/Metal/MTLBoundingBox.h"
|
||||
#include "VideoBackends/Metal/MTLGfx.h"
|
||||
#include "VideoBackends/Metal/MTLObjectCache.h"
|
||||
#include "VideoBackends/Metal/MTLPerfQuery.h"
|
||||
#include "VideoBackends/Metal/MTLGfx.h"
|
||||
#include "VideoBackends/Metal/MTLStateTracker.h"
|
||||
#include "VideoBackends/Metal/MTLUtil.h"
|
||||
#include "VideoBackends/Metal/MTLVertexManager.h"
|
||||
@ -106,11 +106,8 @@ bool Metal::VideoBackend::Initialize(const WindowSystemInfo& wsi)
|
||||
g_state_tracker = std::make_unique<StateTracker>();
|
||||
|
||||
return InitializeShared(
|
||||
std::make_unique<Metal::Gfx>(std::move(layer)),
|
||||
std::make_unique<Metal::VertexManager>(),
|
||||
std::make_unique<Metal::PerfQuery>(),
|
||||
std::make_unique<Metal::BoundingBox>()
|
||||
);
|
||||
std::make_unique<Metal::Gfx>(std::move(layer)), std::make_unique<Metal::VertexManager>(),
|
||||
std::make_unique<Metal::PerfQuery>(), std::make_unique<Metal::BoundingBox>());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,8 +8,8 @@
|
||||
|
||||
#include "VideoBackends/Metal/MRCHelpers.h"
|
||||
|
||||
#include "VideoCommon/RenderState.h"
|
||||
#include "VideoCommon/BPMemory.h"
|
||||
#include "VideoCommon/RenderState.h"
|
||||
|
||||
struct AbstractPipelineConfig;
|
||||
class AbstractPipeline;
|
||||
|
@ -75,4 +75,4 @@ bool PopulateConfig(GLContext* main_gl_context);
|
||||
|
||||
extern VideoConfig g_ogl_config;
|
||||
|
||||
} // namespace OGL
|
||||
} // namespace OGL
|
||||
|
@ -128,4 +128,4 @@ void SWGfx::SetScissorRect(const MathUtil::Rectangle<int>& rc)
|
||||
Rasterizer::ScissorChanged();
|
||||
}
|
||||
|
||||
} // namespace SW
|
||||
} // namespace SW
|
||||
|
@ -176,7 +176,6 @@ bool VertexShaderManager::UseVertexDepthRange()
|
||||
return fabs(xfmem.viewport.zRange) > 16777215.0f || fabs(xfmem.viewport.farZ) > 16777215.0f;
|
||||
}
|
||||
|
||||
|
||||
// Syncs the shader constant buffers with xfmem
|
||||
// TODO: A cleaner way to control the matrices without making a mess in the parameters field
|
||||
void VertexShaderManager::SetConstants(const std::vector<std::string>& textures)
|
||||
|
@ -49,8 +49,6 @@ public:
|
||||
VertexShaderConstants constants{};
|
||||
bool dirty = false;
|
||||
|
||||
|
||||
|
||||
private:
|
||||
alignas(16) std::array<float, 16> m_projection_matrix;
|
||||
|
||||
|
@ -355,8 +355,5 @@ void CheckForConfigChanges()
|
||||
// TODO: Move everything else to the ConfigChanged event
|
||||
}
|
||||
|
||||
static EventHook s_check_config_event = AfterFrameEvent::Register(
|
||||
[] {
|
||||
CheckForConfigChanges();
|
||||
},
|
||||
"CheckForConfigChanges");
|
||||
static EventHook s_check_config_event =
|
||||
AfterFrameEvent::Register([] { CheckForConfigChanges(); }, "CheckForConfigChanges");
|
||||
|
@ -15,10 +15,12 @@ WidescreenManager::WidescreenManager()
|
||||
{
|
||||
Update();
|
||||
|
||||
m_config_changed = ConfigChangedEvent::Register([this](u32 bits) {
|
||||
if (bits & (CONFIG_CHANGE_BIT_ASPECT_RATIO))
|
||||
Update();
|
||||
}, "Widescreen");
|
||||
m_config_changed = ConfigChangedEvent::Register(
|
||||
[this](u32 bits) {
|
||||
if (bits & (CONFIG_CHANGE_BIT_ASPECT_RATIO))
|
||||
Update();
|
||||
},
|
||||
"Widescreen");
|
||||
|
||||
// VertexManager doesn't maintain statistics in Wii mode.
|
||||
if (!SConfig::GetInstance().bWii)
|
||||
@ -28,7 +30,6 @@ WidescreenManager::WidescreenManager()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void WidescreenManager::Update()
|
||||
{
|
||||
if (SConfig::GetInstance().bWii)
|
||||
@ -110,4 +111,4 @@ void WidescreenManager::DoState(PointerWrap& p)
|
||||
{
|
||||
m_was_orthographically_anamorphic = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
||||
#include "VideoCommon/VideoConfig.h"
|
||||
#include "VideoCommon/VideoEvents.h"
|
||||
|
||||
@ -20,6 +19,7 @@ public:
|
||||
bool IsGameWidescreen() const { return m_is_game_widescreen; }
|
||||
|
||||
void DoState(PointerWrap& p);
|
||||
|
||||
private:
|
||||
void Update();
|
||||
void UpdateWidescreenHeuristic();
|
||||
@ -31,4 +31,4 @@ private:
|
||||
EventHook m_config_changed;
|
||||
};
|
||||
|
||||
extern std::unique_ptr<WidescreenManager> g_widescreen;
|
||||
extern std::unique_ptr<WidescreenManager> g_widescreen;
|
||||
|
Loading…
Reference in New Issue
Block a user