1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-25 22:18:34 +01:00

restored FNA compatibility

This commit is contained in:
Ell 2023-05-15 18:05:47 +02:00
parent 99b45b09d9
commit 4863b5504b

View file

@ -240,7 +240,7 @@ namespace MLEM.Data {
if (size.X <= 0 || size.Y <= 0) if (size.X <= 0 || size.Y <= 0)
return Rectangle.Empty; return Rectangle.Empty;
var area = new Rectangle(Point.Zero, size); var area = new Rectangle(0, 0, size.X, size.Y);
var lowestY = int.MaxValue; var lowestY = int.MaxValue;
while (true) { while (true) {
// check if the current area is already occupied // check if the current area is already occupied