Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Yelo420 committed Dec 18, 2024
1 parent f305c99 commit b873fa4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
8 changes: 4 additions & 4 deletions gamevault/Helper/CacheHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ await Task.Run(() =>
{
if (GifHelper.IsGif(file))
{
int maxGifHeightWidth = 400;
uint maxGifHeightWidth = 400;
GifHelper.OptimizeGIF(file, maxGifHeightWidth);
image.Refresh();
continue;
}
}
ResizeImage(file, Convert.ToInt32(maxHeight));
ResizeImage(file, Convert.ToUInt32(maxHeight));
image.Refresh();
}
else
Expand Down Expand Up @@ -231,7 +231,7 @@ internal static Dictionary<string, string> GetImageCacheForGame(Game game)
imageCache.Add("gbg", background);
return imageCache;
}
private static void ResizeImage(string path, int maxHeight)
private static void ResizeImage(string path, uint maxHeight)
{
using (var imageMagick = new MagickImage(path))
{
Expand All @@ -245,7 +245,7 @@ private static void ResizeImage(string path, int maxHeight)
}
else if (imageMagick.Height > SystemParameters.FullPrimaryScreenHeight)
{
var size = new MagickGeometry((int)SystemParameters.FullPrimaryScreenWidth, (int)SystemParameters.FullPrimaryScreenHeight);
var size = new MagickGeometry((uint)SystemParameters.FullPrimaryScreenWidth, (uint)SystemParameters.FullPrimaryScreenHeight);
size.IgnoreAspectRatio = false;
imageMagick.Resize(size);
imageMagick.Write(path);
Expand Down
2 changes: 1 addition & 1 deletion gamevault/Helper/GifHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ await Task.Run(() =>
}
});
}
internal static void OptimizeGIF(string path, int maxHeightWidth)
internal static void OptimizeGIF(string path, uint maxHeightWidth)
{
Tuple<int, int>? dimensions = GetGifDimensions(path);
if (dimensions != null && (dimensions.Item1 > maxHeightWidth || dimensions.Item2 > maxHeightWidth))
Expand Down
5 changes: 1 addition & 4 deletions gamevault/UserControls/GameSettingsUserControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@
using System.Windows.Media;
using LiveChartsCore.SkiaSharpView.Painting;
using gamevault.Models.Mapping;
using Windows.Gaming.Input;
using System.Runtime.Serialization.Formatters.Binary;
using IO.Swagger.Model;
using gamevault.Windows;
using Microsoft.Extensions.Primitives;


namespace gamevault.UserControls
{
Expand Down
2 changes: 1 addition & 1 deletion gamevault/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public FrameworkElement Popup
}
public void OpenPopup(FrameworkElement userControl)
{
if (MainWindowViewModel.Instance.ActiveControl?.GetType() == typeof(GameViewUserControl))//Else the popup would be rendered below the media slider because of the airspace problem
if (MainWindowViewModel.Instance.ActiveControl?.GetType() == typeof(GameViewUserControl) && userControl?.GetType() != typeof(MediaSlider))//Else the popup would be rendered below the media slider because of the airspace problem
{
((GameViewUserControl)MainWindowViewModel.Instance.ActiveControl).uiMediaSlider.UnloadMediaSlider();
}
Expand Down
14 changes: 7 additions & 7 deletions gamevault/gamevault.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@

<ItemGroup>
<PackageReference Include="DiscordRichPresence" Version="1.2.1.24" />
<PackageReference Include="IdentityModel.OidcClient" Version="5.2.1" />
<PackageReference Include="IdentityModel.OidcClient" Version="6.0.0" />
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="LiveChartsCore.SkiaSharpView.WPF" Version="2.0.0-rc2" />
<PackageReference Include="Magick.NET-Q8-x64" Version="13.5.0" />
<PackageReference Include="Magick.NET-Q8-x64" Version="14.2.0" />
<PackageReference Include="MahApps.Metro" Version="2.4.10" />
<PackageReference Include="MahApps.Metro.IconPacks" Version="4.11.0" />
<PackageReference Include="Markdig.Wpf" Version="0.5.0.1" />
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2365.46" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.3.1" />
<PackageReference Include="System.Management" Version="8.0.0" />
<PackageReference Include="VirtualizingWrapPanel" Version="1.5.8" />
<PackageReference Include="YoutubeExplode" Version="6.4.2" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2903.40" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.3.0" />
<PackageReference Include="System.Management" Version="9.0.0" />
<PackageReference Include="VirtualizingWrapPanel" Version="2.1.0" />
<PackageReference Include="YoutubeExplode" Version="6.5.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit b873fa4

Please sign in to comment.