1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-26 10:19:22 +01:00

FNA doesn't support vector offsets

This commit is contained in:
Ell 2022-09-14 11:24:45 +02:00
parent 740c65a887
commit ff92a00e1a

View file

@ -6,7 +6,6 @@ using System.Text.RegularExpressions;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using MLEM.Extensions;
using MLEM.Misc;
using MLEM.Textures;
#if FNA
@ -172,7 +171,7 @@ namespace MLEM.Data {
var piv = pivot;
var off = offset + addedOff;
loc.Offset(off);
loc.Offset(off.ToPoint());
if (piv != Vector2.Zero) {
piv += off;
if (!pivotRelative)