Исправление косяка
This commit is contained in:
parent
d8f53d52d1
commit
542fe732ec
@ -122,22 +122,6 @@ namespace Liner.Generics
|
|||||||
/// <param name="g"></param>
|
/// <param name="g"></param>
|
||||||
private void DrawObjects(Graphics g)
|
private void DrawObjects(Graphics g)
|
||||||
{
|
{
|
||||||
/*int iX = ((_pictureWidth / _placeSizeWidth) - 1) * _placeSizeWidth;
|
|
||||||
int iY = 0;
|
|
||||||
for (int i = 0; i < _collection.Count; i++)
|
|
||||||
{
|
|
||||||
_collection.Get(i)?.SetPosition(iX,iY);
|
|
||||||
_collection.Get(i)?.DrawTransport(g);
|
|
||||||
if(_collection.Get(i) != null)
|
|
||||||
{
|
|
||||||
iY += _placeSizeHeight;
|
|
||||||
if(iY + _placeSizeHeight >= _pictureHeight)
|
|
||||||
{
|
|
||||||
iY = 0;
|
|
||||||
iX -= _placeSizeWidth;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
int iX = ((_pictureWidth / _placeSizeWidth) - 1) * _placeSizeWidth;
|
int iX = ((_pictureWidth / _placeSizeWidth) - 1) * _placeSizeWidth;
|
||||||
int iY = 0;
|
int iY = 0;
|
||||||
for (int i = 0; i < _collection.Count; i++)
|
for (int i = 0; i < _collection.Count; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user