Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
wrong origin
  • Loading branch information
lastbattle committed Jul 13, 2020
1 parent 179da68 commit 213d2be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HaRepacker/GUI/Panels/ImageAnimationPreviewWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/// <summary>
/// Constructor
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 213d2be

Please sign in to comment.