Replace magic values with proper variables.

pull/32/head
Miepee 4 years ago
parent b9eb2228a3
commit 71d046d063

@ -682,9 +682,9 @@ namespace AM2RLauncher
// Get drawing variables // Get drawing variables
float height = drawable.Height; float height = drawable.Height;
float width = drawable.Width; float width = drawable.Width;
//TODO: apparently winforms is the big outlier here. Works normal on wpf, I have *no* idea why, investigate and submit issue at eto //TODO: apparently winforms is the big outlier here. Works normal on wpf, I have *no* idea why, seems related to our image. issue has been submitted at eto
float scaleDivisor = OS.IsWindows ? 955f : 715f; // Magic brute-forced values. Don't ask questions, because we don't have answers >_> float scaleDivisor = OS.IsWindows ? formBG.Width : formBG.Height;
// Also, seems like nix systems share the same scaleDivisor. Again, don't ask.
float scale = height / scaleDivisor; float scale = height / scaleDivisor;
// Do the actual scaling // Do the actual scaling

Loading…
Cancel
Save