From 213d2be260e8689ba6b7800dab047dc529af304d Mon Sep 17 00:00:00 2001 From: eaxvac Date: Tue, 14 Jul 2020 01:36:04 +0800 Subject: [PATCH] oops wrong origin --- HaRepacker/GUI/Panels/ImageAnimationPreviewWindow.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/HaRepacker/GUI/Panels/ImageAnimationPreviewWindow.cs b/HaRepacker/GUI/Panels/ImageAnimationPreviewWindow.cs index f299c038..89bb0fdd 100644 --- a/HaRepacker/GUI/Panels/ImageAnimationPreviewWindow.cs +++ b/HaRepacker/GUI/Panels/ImageAnimationPreviewWindow.cs @@ -40,8 +40,8 @@ public class ImageAnimationPreviewWindow : Microsoft.Xna.Framework.Game private SpriteFont font; // - public int mapShiftX = 0; - public int mapShiftY = 0; + public int mapShiftX = -600; + public int mapShiftY = -400; /// /// Constructor @@ -137,7 +137,7 @@ protected override void LoadContent() // Add to the list of images to render System.Drawing.PointF origin = canvasProperty.GetCanvasOriginPosition(); - DXObject dxObject = new DXObject((int) origin.X, (int)origin.Y, image.ToTexture2D(graphicsDeviceMgr.GraphicsDevice), (int) delay); + DXObject dxObject = new DXObject((int) -origin.X, (int) -origin.Y, image.ToTexture2D(graphicsDeviceMgr.GraphicsDevice), (int) delay); animationFrames.Add(dxObject); }