From 90802ccb5599ef2af0f1529fd7cbfeaef177b58d Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 29 Jan 2017 20:45:32 -0500 Subject: 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. --- ShiftOS.WinForms/Applications/Shifter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ShiftOS.WinForms/Applications/Shifter.cs') 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 { -- cgit v1.2.3