1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-10 16:49:09 +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;
using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Graphics;
using MLEM.Extensions;
using MLEM.Misc; using MLEM.Misc;
using MLEM.Textures; using MLEM.Textures;
#if FNA #if FNA
@ -172,7 +171,7 @@ namespace MLEM.Data {
var piv = pivot; var piv = pivot;
var off = offset + addedOff; var off = offset + addedOff;
loc.Offset(off); loc.Offset(off.ToPoint());
if (piv != Vector2.Zero) { if (piv != Vector2.Zero) {
piv += off; piv += off;
if (!pivotRelative) if (!pivotRelative)