mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Video: update widescreen heuristic code to never get stuck to specific old values when changing settings
This commit is contained in:
@ -24,12 +24,21 @@ public:
|
||||
void DoState(PointerWrap& p);
|
||||
|
||||
private:
|
||||
void Update();
|
||||
enum class HeuristicState
|
||||
{
|
||||
Inactive,
|
||||
Active_NotFound,
|
||||
Active_Found_Normal,
|
||||
Active_Found_Anamorphic,
|
||||
};
|
||||
|
||||
// Returns whether the widescreen state wants to change, and its target value
|
||||
std::optional<bool> GetWidescreenOverride() const;
|
||||
void UpdateWidescreenHeuristic();
|
||||
|
||||
bool m_is_game_widescreen = false;
|
||||
bool m_was_orthographically_anamorphic = false;
|
||||
bool m_widescreen_heuristics_active_and_successful = false;
|
||||
HeuristicState m_heuristic_state = HeuristicState::Inactive;
|
||||
|
||||
Common::EventHook m_update_widescreen;
|
||||
Common::EventHook m_config_changed;
|
||||
|
Reference in New Issue
Block a user