From e63e1d65f7445988d9889a7b5a54b380ddb514e8 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 22 Apr 2017 12:44:26 -0400 Subject: [PATCH] Enable GIF loading --- ShiftOS.WinForms/Applications/GraphicPicker.cs | 2 +- ShiftOS.WinForms/WinformsDesktop.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ShiftOS.WinForms/Applications/GraphicPicker.cs b/ShiftOS.WinForms/Applications/GraphicPicker.cs index b3dd8bf..4f3f2bb 100644 --- a/ShiftOS.WinForms/Applications/GraphicPicker.cs +++ b/ShiftOS.WinForms/Applications/GraphicPicker.cs @@ -83,7 +83,7 @@ namespace ShiftOS.WinForms.Applications public void btnidlebrowse_Click(object s, EventArgs a) { - AppearanceManager.SetupDialog(new FileDialog(new[] { ".png", ".jpg", ".bmp", ".pic" }, FileOpenerStyle.Open, new Action((file) => + AppearanceManager.SetupDialog(new FileDialog(new[] { ".png", ".gif", ".jpg", ".bmp", ".pic" }, FileOpenerStyle.Open, new Action((file) => { ImageAsBinary = Utils.ReadAllBytes(file); System.IO.File.WriteAllBytes("temp_bin.bmp", ImageAsBinary); diff --git a/ShiftOS.WinForms/WinformsDesktop.cs b/ShiftOS.WinForms/WinformsDesktop.cs index d15c04d..61c371e 100644 --- a/ShiftOS.WinForms/WinformsDesktop.cs +++ b/ShiftOS.WinForms/WinformsDesktop.cs @@ -456,7 +456,6 @@ namespace ShiftOS.WinForms UserControl w = (UserControl)Activator.CreateInstance(widget.Value, null); w.Location = WidgetManager.LoadLocation(w.GetType()); - w.Top -= desktoppanel.Height; pnlwidgetlayer.Controls.Add(w); MakeWidgetMovable(w); Widgets.Add(w as IDesktopWidget);