Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/canvas/kis_canvas2.cpp
Show First 20 Lines • Show All 172 Lines • ▼ Show 20 Line(s) | 172 | { | |||
---|---|---|---|---|---|
173 | /** | 173 | /** | ||
174 | * While loading LoD should be blocked. Only when GUI has finished | 174 | * While loading LoD should be blocked. Only when GUI has finished | ||
175 | * loading and zoom level settled down, LoD is given a green | 175 | * loading and zoom level settled down, LoD is given a green | ||
176 | * light. | 176 | * light. | ||
177 | */ | 177 | */ | ||
178 | m_d->bootstrapLodBlocked = true; | 178 | m_d->bootstrapLodBlocked = true; | ||
179 | connect(view->mainWindow(), SIGNAL(guiLoadingFinished()), SLOT(bootstrapFinished())); | 179 | connect(view->mainWindow(), SIGNAL(guiLoadingFinished()), SLOT(bootstrapFinished())); | ||
180 | 180 | | |||
181 | m_d->updateSignalCompressor.setDelay(10); | 181 | KisImageConfig config; | ||
182 | | ||||
183 | m_d->updateSignalCompressor.setDelay(1000 / config.fpsLimit()); | ||||
182 | m_d->updateSignalCompressor.setMode(KisSignalCompressor::FIRST_ACTIVE); | 184 | m_d->updateSignalCompressor.setMode(KisSignalCompressor::FIRST_ACTIVE); | ||
183 | } | 185 | } | ||
184 | 186 | | |||
185 | void KisCanvas2::setup() | 187 | void KisCanvas2::setup() | ||
186 | { | 188 | { | ||
187 | // a bit of duplication from slotConfigChanged() | 189 | // a bit of duplication from slotConfigChanged() | ||
188 | KisConfig cfg; | 190 | KisConfig cfg; | ||
189 | m_d->vastScrolling = cfg.vastScrolling(); | 191 | m_d->vastScrolling = cfg.vastScrolling(); | ||
▲ Show 20 Lines • Show All 825 Lines • Show Last 20 Lines |