src/colors.cpp

changeset 364
7c3af0a6f8ab
parent 359
bcdfc801658b
child 406
5371baa17346
--- a/src/colors.cpp	Mon Jul 08 01:29:28 2013 +0300
+++ b/src/colors.cpp	Mon Jul 08 01:36:12 2013 +0300
@@ -23,22 +23,22 @@
 #include "gui.h"
 #include <qcolor.h>
 
-static color* g_LDColors[MAX_COLORS];
+static LDColor* g_LDColors[MAX_COLORS];
 
 void initColors()
 {
 	print( "%1: initializing color information.\n", __func__ );
 	
-	color* col;
+	LDColor* col;
 	
 	// Always make sure there's 16 and 24 available. They're special like that.
-	col = new color;
+	col = new LDColor;
 	col->hexcode = "#AAAAAA";
 	col->faceColor = col->hexcode;
 	col->edgeColor = Qt::black;
 	g_LDColors[maincolor] = col;
 	
-	col = new color;
+	col = new LDColor;
 	col->hexcode = "#000000";
 	col->edgeColor = col->faceColor = Qt::black;
 	g_LDColors[edgecolor] = col;
@@ -49,7 +49,7 @@
 // =============================================================================
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 // =============================================================================
-color* getColor( short colnum )
+LDColor* getColor( short colnum )
 {
 	// Check bounds
 	if( colnum < 0 || colnum >= MAX_COLORS )
@@ -143,7 +143,7 @@
 		if( parseLDConfigTag( pars, "ALPHA", valuestr ))
 			alpha = clamp<short> ( valuestr.toShort(), 0, 255 );
 		
-		color* col = new color;
+		LDColor* col = new LDColor;
 		col->name = name;
 		col->faceColor = faceColor;
 		col->edgeColor = edgeColor;

mercurial