Changeset View
Changeset View
Standalone View
Standalone View
krita/ui/opengl/kis_opengl_canvas2.cpp
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Line(s) | 181 | { | |||
---|---|---|---|---|---|
197 | if (!initializing && needsFullRefresh) { | 197 | if (!initializing && needsFullRefresh) { | ||
198 | canvas()->startUpdateInPatches(canvas()->image()->bounds()); | 198 | canvas()->startUpdateInPatches(canvas()->image()->bounds()); | ||
199 | } | 199 | } | ||
200 | else if (!initializing) { | 200 | else if (!initializing) { | ||
201 | canvas()->updateCanvas(); | 201 | canvas()->updateCanvas(); | ||
202 | } | 202 | } | ||
203 | } | 203 | } | ||
204 | 204 | | |||
205 | void KisOpenGLCanvas2::disconnectCurrentCanvas() | | |||
206 | { | | |||
207 | Q_ASSERT(d->openGLImageTextures); | | |||
208 | d->openGLImageTextures->disconnect(canvas()); | | |||
209 | d->openGLImageTextures->disconnect(canvas()->image()); | | |||
210 | } | | |||
211 | | ||||
212 | | ||||
213 | void KisOpenGLCanvas2::setWrapAroundViewingMode(bool value) | 205 | void KisOpenGLCanvas2::setWrapAroundViewingMode(bool value) | ||
214 | { | 206 | { | ||
215 | d->wrapAroundMode = value; | 207 | d->wrapAroundMode = value; | ||
216 | update(); | 208 | update(); | ||
217 | } | 209 | } | ||
218 | 210 | | |||
219 | void KisOpenGLCanvas2::initializeGL() | 211 | void KisOpenGLCanvas2::initializeGL() | ||
220 | { | 212 | { | ||
▲ Show 20 Lines • Show All 643 Lines • Show Last 20 Lines |