LabWork1 PIbd-21 Zacharchenko #1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user