Skip to content

Commit

Permalink
Version 1.03.2
Browse files Browse the repository at this point in the history
- Widescreen fix now support all resolution
- VR Mission - Mission preview box fixed
- Autoconfig now recognize 21:9 resolution
  • Loading branch information
VFansss committed Apr 1, 2017
1 parent 99d7f02 commit b565ec4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 79 deletions.
18 changes: 0 additions & 18 deletions mgs2 v's fix/Form1.Designer.cs

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

58 changes: 14 additions & 44 deletions mgs2 v's fix/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ public Form1()
// Force the ToolTip text to be displayed whether or not the form is active.
toolTip1.ShowAlways = true;

// Set up the ToolTip text for the Button and Checkbox.
toolTip1.SetToolTip(this.lbl_tooltip, "It will avoid stretch ONLY on 16:9, 16:10 or 21:9 resolution!");

// SET DEBUG label on main menu

if (Ocelot.debugMode)
Expand Down Expand Up @@ -452,16 +449,6 @@ public void load_InternalConfig_SetTo_SetupperConfig()
#endregion


// Suggestion time!

if (Double.Parse(txt_Width.Text) == 1366 && Double.Parse(txt_Height.Text) == 768)
{
// A suggestion.

Ocelot.showMessage("laptop_res_suggestion");

}

}

/* this will retrieve settings from setupper and storage in inside Ocelot.InternalConfiguration */
Expand Down Expand Up @@ -860,20 +847,22 @@ private void checkIfWSElegible(object sender, KeyEventArgs e)

double rapporto = (Double.Parse(txt_Width.Text) / Double.Parse(txt_Height.Text));

if (Double.Parse(txt_Width.Text) == 1366 && Double.Parse(txt_Height.Text) == 768)
{
// A suggestion.

Ocelot.showMessage("laptop_res_suggestion");

}
// NB: This is replied in Ocelot.startAutoconfig

// 1.6 -> 16:10
// 1.777... -> 16:9
// 2.333... -> 21:9
// 2.370period -> 21:9

if ((rapporto == 1.6d) || (rapporto == 1.7777777777777777d) || (rapporto == 2.3333333333333333d) || (rapporto == 2.3703703703703703d))
// 1.777... -> 16:9
// 1.778645883... -> 1366x768

// 2.3703703703703703d -> 2560x1080
// 2.3888888888888888d -> 3440x1440

if (
(rapporto == 1.6d) ||
(rapporto == 1.7777777777777777d) ||
(rapporto == 1.7786458333333333d) ||
(rapporto == 2.3703703703703703d) ||
(rapporto == 2.3888888888888888d)
)
{
chb_WideScreenFIX.Checked = true;
}
Expand All @@ -888,25 +877,6 @@ private void checkIfWSElegible(object sender, KeyEventArgs e)
}
}

// WideScreenFIX Tooltip

private void lbl_tooltip_Click(object sender, EventArgs e)
{

Ocelot.showMessage("tip_aspect_ratio");

}

private void lbl_tooltip_MouseEnter(object sender, EventArgs e)
{
lbl_tooltip.Font = new Font(lbl_tooltip.Font, FontStyle.Underline);
}

private void lbl_tooltip_MouseLeave(object sender, EventArgs e)
{
lbl_tooltip.Font = new Font(lbl_tooltip.Font, FontStyle.Regular);
}

// About tab

private void tbx_About_LinkClicked(object sender, LinkClickedEventArgs e)
Expand Down
28 changes: 11 additions & 17 deletions mgs2 v's fix/Ocelot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -903,14 +903,22 @@ public static void startAutoconfig()

double rapporto = (Double.Parse(defaultConfig.Resolution["Width"]) / Double.Parse(defaultConfig.Resolution["Height"]));

if ((rapporto == 1.6d) || (rapporto == 1.7777777777777777d))
{
// NB: This is replied in Form1.checkIfWSElegible

if (
(rapporto == 1.6d) ||
(rapporto == 1.7777777777777777d) ||
(rapporto == 1.7786458333333333d) ||
(rapporto == 2.3703703703703703d) ||
(rapporto == 2.3888888888888888d)
)
{
defaultConfig.Resolution["WideScreenFIX"] = "true";
}
else
{
defaultConfig.Resolution["WideScreenFIX"] = "false";
}
};

Ocelot.getGraphicsAdapterList();

Expand Down Expand Up @@ -1025,13 +1033,6 @@ public static void showMessage(string code)

break;

case "tip_aspect_ratio":

MessageBox.Show("It will avoid stretch ONLY (and I will repeat: ONLY!) on 16:9 , 16:10 or 21:9 resolution!",
"Little explanation", MessageBoxButtons.OK, MessageBoxIcon.Information);

break;

case "tip_AA":

MessageBox.Show("Activating anti-aliasing require that game (mgs2_sse.exe) must run in WINDOWS XP SP3 compatibility mode.\n\nV's Fix will try to set it automatically but (like all things in life) may fail so check it out MANUALLY.\n\nRunning the game without XP compatibility may result in a BLACK SCREEN ON GAME STARTUP!\n\nAlso, it isn't compatible with 'High' model quality preset.",
Expand All @@ -1046,13 +1047,6 @@ public static void showMessage(string code)

break;

case "laptop_res_suggestion":

MessageBox.Show("Probably you have a 1366*768 monitor. Good!\nBut if you want an advice: set game resolution to 1280*720 instead.\nThan you can use the widescreen fix and see the game much much better!",
"Try this...", MessageBoxButtons.OK, MessageBoxIcon.Information);

break;

// ERROR MESSAGE

case "wrong_folder_error":
Expand Down
Binary file modified mgs2 v's fix/Resources/WSF.zip
Binary file not shown.

0 comments on commit b565ec4

Please sign in to comment.