diff options
| author | Michael <[email protected]> | 2017-01-29 20:45:32 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-01-29 20:45:32 -0500 |
| commit | 90802ccb5599ef2af0f1529fd7cbfeaef177b58d (patch) | |
| tree | 69355b3b25144dc55e370f9ce1d5ef09ff94aae5 /ShiftOS.WinForms/Applications/Shifter.cs | |
| parent | 11f838ea2340b50a7899cf9fb2569b0826aef001 (diff) | |
| download | shiftos_thereturn-90802ccb5599ef2af0f1529fd7cbfeaef177b58d.tar.gz shiftos_thereturn-90802ccb5599ef2af0f1529fd7cbfeaef177b58d.tar.bz2 shiftos_thereturn-90802ccb5599ef2af0f1529fd7cbfeaef177b58d.zip | |
Fix some crashes and UI bugs
Audio manager crashed after loading a second song
Color Picker and ArtPad palette entries were not appearing properly.
Fonts in Shifter could not have decimal sizes.
Diffstat (limited to 'ShiftOS.WinForms/Applications/Shifter.cs')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Shifter.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ShiftOS.WinForms/Applications/Shifter.cs b/ShiftOS.WinForms/Applications/Shifter.cs index 0cfb65b..d7dda28 100644 --- a/ShiftOS.WinForms/Applications/Shifter.cs +++ b/ShiftOS.WinForms/Applications/Shifter.cs @@ -379,7 +379,7 @@ namespace ShiftOS.WinForms.Applications var f = en[style.SelectedIndex]; - c.Field.SetValue(LoadedSkin, new Font(name.Text, (float)Convert.ToInt32(size.Text), f)); + c.Field.SetValue(LoadedSkin, new Font(name.Text, (float)Convert.ToDouble(size.Text), f)); CodepointValue += 100; }; @@ -389,7 +389,7 @@ namespace ShiftOS.WinForms.Applications var f = en[style.SelectedIndex]; - c.Field.SetValue(LoadedSkin, new Font(name.Text, (float)Convert.ToInt32(size.Text), f)); + c.Field.SetValue(LoadedSkin, new Font(name.Text, (float)Convert.ToDouble(size.Text), f)); CodepointValue += 50; }; @@ -401,7 +401,7 @@ namespace ShiftOS.WinForms.Applications var f = en[style.SelectedIndex]; - c.Field.SetValue(LoadedSkin, new Font(name.Text, (float)Convert.ToInt32(size.Text), f)); + c.Field.SetValue(LoadedSkin, new Font(name.Text, (float)Convert.ToDouble(size.Text), f)); } catch { |
