From 6f4ffb090b53443338f0b3bdeb4c804383e5bb2b Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Tue, 1 Dec 2020 12:46:42 +0400 Subject: =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B4=D0=B0=D1=87=D1=83=205=203D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task05_3D/Guschin/MyForm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'task05_3D') diff --git a/task05_3D/Guschin/MyForm.h b/task05_3D/Guschin/MyForm.h index 0ba7758..94b8d4f 100644 --- a/task05_3D/Guschin/MyForm.h +++ b/task05_3D/Guschin/MyForm.h @@ -211,7 +211,7 @@ namespace Guschin { } vec2 tmpEnd = end; - bool visible = hasStart && hasEnd && clip(start, end, minX, minY, maxX, maxY); + bool visible = hasStart && hasEnd && clip(start, end, Wcx_w - Wx_work, Wcy_w - Wy_work, maxX, Wcy_w); if (visible) { if (deltaY > 1.f) deltaY = 1.f; -- cgit v1.2.3