Боровков М В ПИбд-22 4 лабораторная работа #5

Closed
bekodeg wants to merge 7 commits from labWork4 into labWork3
Showing only changes of commit 7880fc1215 - Show all commits

View File

@ -138,8 +138,9 @@ namespace ProjectElectricLocomotive.Generics
continue;
}
int widthCount = _pictureHeight / _placeSizeHeight;
drawningLocomotive.SetPosition((i / widthCount) * _placeSizeWidth, (i % widthCount) * _placeSizeHeight);
int ColumnCount = _pictureWidth / _placeSizeWidth;
int RowsCount = _pictureHeight / _placeSizeHeight;
drawningLocomotive.SetPosition((i % ColumnCount) * _placeSizeWidth, ((RowsCount - i / ColumnCount - 1) * _placeSizeHeight));
drawningLocomotive.DrawTransport(g);
}
}