This commit is contained in:
Mark Zaharchenko 2022-10-10 01:41:01 +04:00
parent 088578d34c
commit e1886e850b

View File

@ -28,6 +28,8 @@ public class DrawingBus {
}
public void SetPosition(int x, int y, int width, int height) {
if (x < 0 || y < 0) return;
if (_pictureWidth <= _busWidth || _pictureHeight <= _busHeight) {
_pictureWidth = _null;
_pictureHeight = _null;