Commit 5cdad3a3 authored by mercury233's avatar mercury233

update pendulum

parent 80b43737
......@@ -482,7 +482,10 @@ namespace ImgGen
graphics.SmoothingMode = SmoothingMode.AntiAlias;
if (data.isType(Type.TYPE_PENDULUM))
{
//graphics.DrawImage(image, 15, 50, 147, 109);
float ar = image.Width / image.Height;
if ((ar >= 1.3) && (ar <= 1.4))
graphics.DrawImage(image, 23, 88, 290, 217);
else
graphics.DrawImage(image, new Rectangle(23, 88, 290, 217), new Rectangle(0, 0, image.Width, image.Width * 217 / 290), GraphicsUnit.Pixel);
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment