Skip to content

Commit

Permalink
Populate the default window scales for a few sysIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiRulz committed Jun 6, 2024
1 parent df05537 commit 4e6559a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/BizHawk.Client.Common/config/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ public void ResolveDefaults()

public bool StackOSDMessages { get; set; } = true;

private Dictionary<string, int> TargetZoomFactors { get; set; } = new();
private Dictionary<string, int> TargetZoomFactors { get; set; } = new()
{
[VSystemID.Raw.GB] = 3,
[VSystemID.Raw.GBA] = 3,
[VSystemID.Raw.GBC] = 3,
[VSystemID.Raw.N64] = 1,
};

public int GetWindowScaleFor(string sysID)
=> TargetZoomFactors.GetValueOrPut(sysID, static _ => 2);
Expand Down

0 comments on commit 4e6559a

Please sign in to comment.