mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-08-27 20:26:04 -05:00
Copy gen7 sprite fetch to gen6
closes #153 could probably standardize a sprite fetch request with scaling, but meh
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
using System.Media;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using pk3DS.Properties;
|
||||
using pk3DS.Core.Structures.PersonalInfo;
|
||||
using pk3DS.Core;
|
||||
|
||||
@@ -258,8 +257,7 @@ private void readEntry()
|
||||
s = entry;
|
||||
int[] specForm = { s, f };
|
||||
string filename = "_" + specForm[0] + (CB_Species.SelectedIndex > 721 ? "_" + (specForm[1] + 1) : "");
|
||||
Bitmap rawImg = (Bitmap)Resources.ResourceManager.GetObject(filename);
|
||||
if (rawImg == null) rawImg = Core.Properties.Resources.unknown;
|
||||
Bitmap rawImg = (Bitmap)Core.Properties.Resources.ResourceManager.GetObject(filename) ?? Core.Properties.Resources.unknown;
|
||||
Bitmap bigImg = new Bitmap(rawImg.Width * 2, rawImg.Height * 2);
|
||||
for (int x = 0; x < rawImg.Width; x++)
|
||||
{
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
using System.Media;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using pk3DS.Properties;
|
||||
using pk3DS.Core.Structures.PersonalInfo;
|
||||
using pk3DS.Core;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user