src/colors.cpp

changeset 471
fc58b67d445c
parent 455
c5d14d112034
child 493
16766ac1bbd9
--- a/src/colors.cpp	Wed Aug 21 11:09:39 2013 +0300
+++ b/src/colors.cpp	Wed Aug 21 14:07:02 2013 +0300
@@ -14,6 +14,11 @@
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *  =====================================================================
+ *
+ *  colors.cpp: LDraw color management. LDConfig.ldr parsing is not here!
+ *  TODO: Make LDColor more full-fledged, add support for direct colors.
+ *  TODO: g_LDColors should probably be a map.
  */
 
 #include "common.h"
@@ -34,14 +39,15 @@
 	
 	// Always make sure there's 16 and 24 available. They're special like that.
 	col = new LDColor;
+	col->faceColor =
 	col->hexcode = "#AAAAAA";
-	col->faceColor = col->hexcode;
 	col->edgeColor = Qt::black;
 	g_LDColors[maincolor] = col;
 	
 	col = new LDColor;
+	col->faceColor =
+	col->edgeColor =
 	col->hexcode = "#000000";
-	col->edgeColor = col->faceColor = Qt::black;
 	g_LDColors[edgecolor] = col;
 	
 	parseLDConfig();

mercurial