From 2bb6730df8094c89af5a07d394fc02c43aea24eb Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sat, 31 Dec 2022 09:40:39 +0100 Subject: Update --- src/CGEditor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/CGEditor.cpp') diff --git a/src/CGEditor.cpp b/src/CGEditor.cpp index fc7c567..1d5eaea 100644 --- a/src/CGEditor.cpp +++ b/src/CGEditor.cpp @@ -77,7 +77,8 @@ void CGEditor::CallDrawElement(Element e) { e.y += status.ScrollY; } } - + DrawElement(e); +return; // Check if element is visible if (((e.x) >= 0 && ((e.x) <= status.CanvasWidth) && (e.y) >= 0 && ((e.y) <= status.CanvasHeight)) || -- cgit v1.2.3