Fixed endianness checkbox not being set on open

This commit is contained in:
MayNL
2026-05-11 19:09:46 -04:00
parent 72a7a60cd8
commit 79597db0af

View File

@@ -44,7 +44,6 @@ using System.Drawing.Drawing2D;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
namespace PckStudio.Controls
{
@@ -82,6 +81,7 @@ namespace PckStudio.Controls
_currentEndianness = packInfo.Endianness;
LittleEndianCheckBox.Visible = packInfo.AllowEndianSwap;
LittleEndianCheckBox.Checked = packInfo.Endianness == OMI.ByteOrder.LittleEndian;
treeViewMain.TreeViewNodeSorter = new PckNodeSorter();
treeViewMain.DrawMode = TreeViewDrawMode.OwnerDrawText;
@@ -770,8 +770,6 @@ namespace PckStudio.Controls
Bitmap customIcon = new Bitmap(skinIconWidth, skinIconHeight);
skin.DrawPaperDoll(xmlVersion: EditorValue.File.xmlVersion).Save("C:\\Users\\MattN\\Pictures\\icontest\\" + skin.Identifier.Id.ToString() + ".png");
using (Graphics gfx = Graphics.FromImage(customIcon))
{
gfx.InterpolationMode = InterpolationMode.NearestNeighbor;