Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Apps
diff options
context:
space:
mode:
Diffstat (limited to 'Apps')
-rw-r--r--Apps/NesMiniApplication.cs17
1 files changed, 15 insertions, 2 deletions
diff --git a/Apps/NesMiniApplication.cs b/Apps/NesMiniApplication.cs
index 33f59573..874d8ef4 100644
--- a/Apps/NesMiniApplication.cs
+++ b/Apps/NesMiniApplication.cs
@@ -260,7 +260,10 @@ namespace com.clusterrr.hakchi_gui
(app as ICloverAutofill).TryAutofill(crc32);
if (ConfigIni.Compress)
+ {
app.Compress();
+ app.Save();
+ }
return app;
}
@@ -417,14 +420,24 @@ namespace com.clusterrr.hakchi_gui
maxY = 204;
}
if ((double)image.Width / (double)image.Height > (double)maxX / (double)maxY)
- outImage = new Bitmap(maxX, (int)((double)maxX * (double)image.Height / (double)image.Width));
+ {
+ int Y = (int)((double)maxX * (double)image.Height / (double)image.Width);
+ if (Y % 2 == 1)
+ ++Y;
+ outImage = new Bitmap(maxX, Y);
+ }
else
outImage = new Bitmap((int)(maxY * (double)image.Width / (double)image.Height), maxY);
int maxXsmall = 40;
int maxYsmall = 40;
if ((double)image.Width / (double)image.Height > (double)maxXsmall / (double)maxYsmall)
- outImageSmall = new Bitmap(maxXsmall, (int)((double)maxXsmall * (double)image.Height / (double)image.Width));
+ {
+ int Y = (int)((double)maxXsmall * (double)image.Height / (double)image.Width);
+ if (Y % 2 == 1)
+ ++Y;
+ outImageSmall = new Bitmap(maxXsmall, Y);
+ }
else
outImageSmall = new Bitmap((int)(maxYsmall * (double)image.Width / (double)image.Height), maxYsmall);