From 0b02e08b722f4c9c1e454b743af527097b1193bf Mon Sep 17 00:00:00 2001 From: "Ayato (Shahil)" <67567036+Shahil-Ayato@users.noreply.github.com> Date: Thu, 11 Feb 2021 00:57:39 -0800 Subject: [PATCH] Hotfix for Joy-Con Images (#2011) The Joy-Con images should no longer be stretched on Windows (P.S I hate Windows :p) --- .../Ui/Resources/Controller_JoyConPair.svg | 24 +++++++------------ Ryujinx/Ui/Windows/ControllerWindow.cs | 6 ++--- 2 files changed, 11 insertions(+), 19 deletions(-) diff --git a/Ryujinx/Ui/Resources/Controller_JoyConPair.svg b/Ryujinx/Ui/Resources/Controller_JoyConPair.svg index 86f2901a7..fe6a9f813 100644 --- a/Ryujinx/Ui/Resources/Controller_JoyConPair.svg +++ b/Ryujinx/Ui/Resources/Controller_JoyConPair.svg @@ -50,13 +50,7 @@ helper_size="0" apply_no_weight="true" apply_with_weight="true" - only_selected="false" /> + inkscape:connector-curvature="0" /> diff --git a/Ryujinx/Ui/Windows/ControllerWindow.cs b/Ryujinx/Ui/Windows/ControllerWindow.cs index a5345b035..e06c6c6be 100644 --- a/Ryujinx/Ui/Windows/ControllerWindow.cs +++ b/Ryujinx/Ui/Windows/ControllerWindow.cs @@ -254,9 +254,9 @@ namespace Ryujinx.Ui.Windows _controllerImage.Pixbuf = _controllerType.ActiveId switch { "ProController" => new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.Resources.Controller_ProCon.svg", 400, 400), - "JoyconLeft" => new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.Resources.Controller_JoyConLeft.svg", 400, 400), - "JoyconRight" => new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.Resources.Controller_JoyConRight.svg", 400, 400), - _ => new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.Resources.Controller_JoyConPair.svg", 400, 400), + "JoyconLeft" => new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.Resources.Controller_JoyConLeft.svg", 400, 500), + "JoyconRight" => new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.Resources.Controller_JoyConRight.svg", 400, 500), + _ => new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.Resources.Controller_JoyConPair.svg", 400, 500), }; }