gldraw.cpp

changeset 72
5755c02d89f0
parent 70
e6b8dab8f81a
child 103
b0a345196435
--- a/gldraw.cpp	Mon Mar 25 22:52:53 2013 +0200
+++ b/gldraw.cpp	Wed Mar 27 11:24:16 2013 +0200
@@ -139,19 +139,16 @@
 			if (obj->dColor == i)
 				return;
 		
-		printf ("%s: Unknown color %d!\n", __func__, obj->dColor);
+		printf ("setObjectColor Unknown color %d!\n", obj->dColor);
 		g_daWarnedColors.push_back (obj->dColor);
 		return;
 	}
 	
-	QColor qCol (col->zColor.chars());
-	
-	if (qCol.isValid ())
-		glColor4f (
-			((double)qCol.red()) / 255.0f,
-			((double)qCol.green()) / 255.0f,
-			((double)qCol.blue()) / 255.0f,
-			col->fAlpha);
+	glColor4f (
+		((double)col->qColor.red()) / 255.0f,
+		((double)col->qColor.green()) / 255.0f,
+		((double)col->qColor.blue()) / 255.0f,
+		((double)col->qColor.alpha()) / 255.0f);
 }
 
 // =============================================================================

mercurial