Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added rudimentary toggle for hud scaling.
Needs proper configuration.
  • Loading branch information
michael-fadely committed Mar 17, 2016
1 parent f181cba commit 8019678
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
3 changes: 2 additions & 1 deletion SADXModLoader/dllmain.cpp
Expand Up @@ -1990,7 +1990,8 @@ static void __cdecl InitMods(void)
if (settings->getBool("EnableVsync", true))
WriteData((int*)0x7940E8, (int)D3DPRESENT_INTERVAL_ONE);

SetupHudScale();
if (settings->getBool("ScaleHud", false))
SetupHudScale();

sadx_fileMap.scanSoundFolder("system\\sounddata\\bgm\\wma");

Expand Down
4 changes: 4 additions & 0 deletions SADXModManager/MainForm.cs
Expand Up @@ -57,6 +57,7 @@ private void MainForm_Load(object sender, EventArgs e)
verticalResolution.Value = Math.Max(verticalResolution.Minimum, Math.Min(verticalResolution.Maximum, loaderini.VerticalResolution));
suppressEvent = true;
forceAspectRatioCheckBox.Checked = loaderini.ForceAspectRatio;
checkScaleHud.Checked = loaderini.ScaleHud;
suppressEvent = false;
windowedFullscreenCheckBox.Checked = loaderini.WindowedFullscreen;
forceMipmappingCheckBox.Checked = loaderini.AutoMipmap;
Expand Down Expand Up @@ -217,6 +218,7 @@ private void Save()
loaderini.HorizontalResolution = (int)horizontalResolution.Value;
loaderini.VerticalResolution = (int)verticalResolution.Value;
loaderini.ForceAspectRatio = forceAspectRatioCheckBox.Checked;
loaderini.ScaleHud = checkScaleHud.Checked;
loaderini.EnableVsync = checkVsync.Checked;
loaderini.WindowedFullscreen = windowedFullscreenCheckBox.Checked;
loaderini.AutoMipmap = forceMipmappingCheckBox.Checked;
Expand Down Expand Up @@ -512,6 +514,8 @@ class LoaderInfo
[DefaultValue(480)]
public int VerticalResolution { get; set; }
public bool ForceAspectRatio { get; set; }
[DefaultValue(false)]
public bool ScaleHud { get; set; }
public bool WindowedFullscreen { get; set; }
[DefaultValue(true)]
public bool EnableVsync { get; set; }
Expand Down
17 changes: 15 additions & 2 deletions SADXModManager/MainForm.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8019678

Please sign in to comment.