Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ad1f5e5f authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix initialization of KoColor not use fromQColor

fromQColor uses a mutex inside, which makes the code works
extremely slow on multicore CPUs
parent 44d13118
......@@ -52,7 +52,7 @@ KoColor::KoColor()
{
d->colorSpace = KoColorSpaceRegistry::instance()->rgb16(0);
d->data = new quint8[d->colorSpace->pixelSize()];
d->colorSpace->fromQColor(Qt::black, d->data);
memset(d->data, 0, d->colorSpace->pixelSize());
d->colorSpace->setOpacity(d->data, OPACITY_OPAQUE_U8, 1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment