Don't recompile everything when using quick colors, this speeds things up a little

Thu, 01 Aug 2013 03:44:38 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Thu, 01 Aug 2013 03:44:38 +0300
changeset 413
a52c30a4c041
parent 412
064b0467c8de
child 414
0f40c56fde23

Don't recompile everything when using quick colors, this speeds things up a little

src/gui.cpp file | annotate | diff | comparison | revisions
--- a/src/gui.cpp	Thu Aug 01 03:32:57 2013 +0300
+++ b/src/gui.cpp	Thu Aug 01 03:44:38 2013 +0300
@@ -465,9 +465,10 @@
 			continue; // uncolored object
 		
 		obj->setColor (newColor);
+		R()->compileObject( obj );
 	}
 	
-	fullRefresh();
+	refresh();
 	endAction();
 }
 

mercurial