removed some dead code and fixed a few bugs i introduced
This commit is contained in:
lewd-alt
2025-08-03 13:09:54 -07:00
parent 300f10dbd7
commit 8fb31d38bb
46 changed files with 160 additions and 73842 deletions

View File

@@ -57,29 +57,6 @@ namespace _2DGAMELIB
Pars.DrawH(hitUnit, gh);
}
}
public new void Draw(Graphics GD)
{
im = GD.InterpolationMode;
GD.InterpolationMode = InterpolationMode.NearestNeighbor;
p = GetPosition();
GD.DrawImage(Dis, (int)(p.X * unit), (int)(p.Y * unit), WH.Width, WH.Height);
GD.InterpolationMode = im;
}
public new void Draw(Graphics GD, double Opacity)
{
im = GD.InterpolationMode;
GD.InterpolationMode = InterpolationMode.NearestNeighbor;
cm.Matrix33 = (float)Opacity;
ia.SetColorMatrix(cm);
p = GetPosition();
r.X = (int)(p.X * unit);
r.Y = (int)(p.Y * unit);
r.Width = WH.Width;
r.Height = WH.Height;
GD.DrawImage(Dis, r, 0, 0, Dis.Width, Dis.Height, GraphicsUnit.Pixel, ia);
GD.InterpolationMode = im;
}
}
}