ecere/gui/Window: Tweak to avoid wasting time on fullRender
authorJerome St-Louis <jerome@ecere.com>
Mon, 15 Dec 2014 07:37:32 +0000 (02:37 -0500)
committerJerome St-Louis <jerome@ecere.com>
Thu, 15 Oct 2015 00:19:17 +0000 (20:19 -0400)
- To review... Seemed to avoid unneeded code.

ecere/src/gui/Window.ec

index 826d43c..b805f29 100644 (file)
@@ -6442,6 +6442,11 @@ public:
             Box realBox;
 
             // Testing this to avoid repetitve full update to take time...
+            if(rootWindow.fullRender)
+            {
+               rootWindow.dirty = true;
+               return;
+            }
             if(dirtyArea.count == 1)
             {
                BoxItem item = (BoxItem)ACCESS_ITEM(dirtyArea, dirtyArea.first);