zz_colorSelectDialog.cpp

changeset 147
291a1fe2d278
parent 137
2b8b63be67fb
child 158
499286fcbf37
equal deleted inserted replaced
146:2ab24976acaa 147:291a1fe2d278
108 const double y = (i / g_dNumColumns) * g_dSquareSize; 108 const double y = (i / g_dNumColumns) * g_dSquareSize;
109 const double w = (g_dSquareSize) - (fPenWidth / 2); 109 const double w = (g_dSquareSize) - (fPenWidth / 2);
110 110
111 QColor qColor = meta->qColor; 111 QColor qColor = meta->qColor;
112 112
113 if (i == dMainColor) { 113 if (i == maincolor) {
114 // Use the user preferences for main color here 114 // Use the user preferences for main color here
115 qColor = gl_maincolor.value.chars (); 115 qColor = gl_maincolor.value.chars ();
116 qColor.setAlpha (gl_maincolor_alpha * 255.0f); 116 qColor.setAlpha (gl_maincolor_alpha * 255.0f);
117 } 117 }
118 118

mercurial