Changeset View
Changeset View
Standalone View
Standalone View
libs/image/krita_utils.cpp
Show All 39 Lines | |||||
40 | #include <KisRenderedDab.h> | 40 | #include <KisRenderedDab.h> | ||
41 | 41 | | |||
42 | 42 | | |||
43 | namespace KritaUtils | 43 | namespace KritaUtils | ||
44 | { | 44 | { | ||
45 | 45 | | |||
46 | QSize optimalPatchSize() | 46 | QSize optimalPatchSize() | ||
47 | { | 47 | { | ||
48 | KisImageConfig cfg(true); | 48 | KisImageConfig cfg; | ||
49 | return QSize(cfg.updatePatchWidth(), | 49 | return QSize(cfg.updatePatchWidth(), | ||
50 | cfg.updatePatchHeight()); | 50 | cfg.updatePatchHeight()); | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | QVector<QRect> splitRectIntoPatches(const QRect &rc, const QSize &patchSize) | 53 | QVector<QRect> splitRectIntoPatches(const QRect &rc, const QSize &patchSize) | ||
54 | { | 54 | { | ||
55 | using namespace KisAlgebra2D; | 55 | using namespace KisAlgebra2D; | ||
56 | 56 | | |||
▲ Show 20 Lines • Show All 422 Lines • Show Last 20 Lines |