Commit 8e40072b authored by Michael Abrahams's avatar Michael Abrahams

Tying up loose ends from D321

parent 7bf6557e
......@@ -202,6 +202,7 @@ public Q_SLOTS:
* Called whenever the display monitor profile resource changes
*/
void slotSetDisplayProfile(const KoColorProfile *profile);
void startUpdateInPatches(QRect imageRect);
private Q_SLOTS:
......@@ -210,7 +211,6 @@ private Q_SLOTS:
void startUpdateCanvasProjection(const QRect & rc);
void updateCanvasProjection();
void startUpdateInPatches(QRect imageRect);
/**
* Called whenever the view widget needs to show a different part of
......
......@@ -185,7 +185,7 @@ void KisQPainterCanvas::setDisplayFilter(KisDisplayFilter* displayFilter)
Q_ASSERT(m_d->prescaledProjection);
m_d->prescaledProjection->setDisplayFilter(displayFilter);
startUpdateInPatches(image->bounds());
canvas()->startUpdateInPatches(canvas()->image()->bounds());
}
......
......@@ -216,9 +216,9 @@ void KisOpenGLCanvas2::setDisplayFilter(KisDisplayFilter* displayFilter)
}
if (needsFullRefresh) {
startUpdateInPatches(image->bounds());
canvas()->startUpdateInPatches(canvas()->image()->bounds());
} else {
updateCanvas();
canvas()->updateCanvas();
}
}
......
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