184 else if (topobj == m_renderer->objectAtCursor()) |
184 else if (topobj == m_renderer->objectAtCursor()) |
185 blendAlpha = 0.5; |
185 blendAlpha = 0.5; |
186 |
186 |
187 if (blendAlpha != 0.0) |
187 if (blendAlpha != 0.0) |
188 { |
188 { |
189 QColor selcolor (Config->selectColorBlend()); |
189 QColor selcolor (m_config->selectColorBlend()); |
190 double denom = blendAlpha + 1.0; |
190 double denom = blendAlpha + 1.0; |
191 qcol.setRed ((qcol.red() + (selcolor.red() * blendAlpha)) / denom); |
191 qcol.setRed ((qcol.red() + (selcolor.red() * blendAlpha)) / denom); |
192 qcol.setGreen ((qcol.green() + (selcolor.green() * blendAlpha)) / denom); |
192 qcol.setGreen ((qcol.green() + (selcolor.green() * blendAlpha)) / denom); |
193 qcol.setBlue ((qcol.blue() + (selcolor.blue() * blendAlpha)) / denom); |
193 qcol.setBlue ((qcol.blue() + (selcolor.blue() * blendAlpha)) / denom); |
194 } |
194 } |