mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Move WidescreenHeuristic to it's own class
It's about the only thing left in renderer
This commit is contained in:
34
Source/Core/VideoCommon/Widescreen.h
Normal file
34
Source/Core/VideoCommon/Widescreen.h
Normal file
@ -0,0 +1,34 @@
|
||||
// Copyright 2023 Dolphin Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
||||
#include "VideoCommon/VideoConfig.h"
|
||||
#include "VideoCommon/VideoEvents.h"
|
||||
|
||||
class PointerWrap;
|
||||
|
||||
// This class is responsible for tracking the game's aspect ratio.
|
||||
class WidescreenManager
|
||||
{
|
||||
public:
|
||||
WidescreenManager();
|
||||
|
||||
bool IsGameWidescreen() const { return m_is_game_widescreen; }
|
||||
|
||||
void DoState(PointerWrap& p);
|
||||
private:
|
||||
void Update();
|
||||
void UpdateWidescreenHeuristic();
|
||||
|
||||
bool m_is_game_widescreen = false;
|
||||
bool m_was_orthographically_anamorphic = false;
|
||||
|
||||
EventHook m_update_widescreen;
|
||||
EventHook m_config_changed;
|
||||
};
|
||||
|
||||
extern std::unique_ptr<WidescreenManager> g_widescreen;
|
Reference in New Issue
Block a user