Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/canvas/kis_animation_player.cpp
Show First 20 Lines • Show All 328 Lines • ▼ Show 20 Line(s) | |||||
329 | { | 329 | { | ||
330 | { | 330 | { | ||
331 | const KisImageAnimationInterface *animation = m_d->canvas->image()->animationInterface(); | 331 | const KisImageAnimationInterface *animation = m_d->canvas->image()->animationInterface(); | ||
332 | const KisTimeRange &range = animation->playbackRange(); | 332 | const KisTimeRange &range = animation->playbackRange(); | ||
333 | if (!range.isValid()) return; | 333 | if (!range.isValid()) return; | ||
334 | 334 | | |||
335 | // when openGL is disabled, there is no animation cache | 335 | // when openGL is disabled, there is no animation cache | ||
336 | if (m_d->canvas->frameCache()) { | 336 | if (m_d->canvas->frameCache()) { | ||
337 | KisImageConfig cfg(true); | 337 | KisImageConfig cfg; | ||
338 | 338 | | |||
339 | const int dimensionLimit = | 339 | const int dimensionLimit = | ||
340 | cfg.useAnimationCacheFrameSizeLimit() ? | 340 | cfg.useAnimationCacheFrameSizeLimit() ? | ||
341 | cfg.animationCacheFrameSizeLimit() : | 341 | cfg.animationCacheFrameSizeLimit() : | ||
342 | std::numeric_limits<int>::max(); | 342 | std::numeric_limits<int>::max(); | ||
343 | 343 | | |||
344 | const int maxImageDimension = KisAlgebra2D::maxDimension(m_d->canvas->image()->bounds()); | 344 | const int maxImageDimension = KisAlgebra2D::maxDimension(m_d->canvas->image()->bounds()); | ||
345 | 345 | | |||
▲ Show 20 Lines • Show All 243 Lines • Show Last 20 Lines |