Example #1
0
void KisOpenGLCanvas2::slotConfigChanged()
{
    KisConfig cfg;
    d->checkSizeScale = KisOpenGLImageTextures::BACKGROUND_TEXTURE_CHECK_SIZE / static_cast<GLfloat>(cfg.checkSize());
    d->scrollCheckers = cfg.scrollCheckers();

    d->openGLImageTextures->generateCheckerTexture(createCheckersImage(cfg.checkSize()));
    d->openGLImageTextures->updateConfig(cfg.useOpenGLTextureBuffer(), cfg.numMipmapLevels());
    d->filterMode = (KisOpenGL::FilterMode) cfg.openGLFilteringMode();

    notifyConfigChanged();
}
Example #2
0
void IRCServer::handleServerConfigUpdate(Buffer &buf) {
	config.readFromBuffer(buf);
	notifyConfigChanged();
}
void KisQPainterCanvas::slotConfigChanged()
{
    m_d->checkBrush = QBrush(createCheckersImage());
    notifyConfigChanged();
}