Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Tusooa Zhu
Krita
Commits
8e40072b
Commit
8e40072b
authored
Sep 01, 2015
by
Michael Abrahams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tying up loose ends from D321
parent
7bf6557e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
krita/ui/canvas/kis_canvas2.h
krita/ui/canvas/kis_canvas2.h
+1
-1
krita/ui/canvas/kis_qpainter_canvas.cpp
krita/ui/canvas/kis_qpainter_canvas.cpp
+1
-1
krita/ui/opengl/kis_opengl_canvas2.cpp
krita/ui/opengl/kis_opengl_canvas2.cpp
+2
-2
No files found.
krita/ui/canvas/kis_canvas2.h
View file @
8e40072b
...
...
@@ -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
...
...
krita/ui/canvas/kis_qpainter_canvas.cpp
View file @
8e40072b
...
...
@@ -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
());
}
...
...
krita/ui/opengl/kis_opengl_canvas2.cpp
View file @
8e40072b
...
...
@@ -216,9 +216,9 @@ void KisOpenGLCanvas2::setDisplayFilter(KisDisplayFilter* displayFilter)
}
if
(
needsFullRefresh
)
{
startUpdateInPatches
(
image
->
bounds
());
canvas
()
->
startUpdateInPatches
(
canvas
()
->
image
()
->
bounds
());
}
else
{
updateCanvas
();
canvas
()
->
updateCanvas
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment