Changeset View
Changeset View
Standalone View
Standalone View
plugins/paintops/hatching/kis_hatching_paintop.cpp
Show First 20 Lines • Show All 175 Lines • ▼ Show 20 Line(s) | 175 | if (!donotbasehatch) | |||
---|---|---|---|---|---|
176 | m_hatchingBrush->hatch(m_hatchedDab, x, y, sw, sh, m_settings->angle, painter()->paintColor(), additionalScale); | 176 | m_hatchingBrush->hatch(m_hatchedDab, x, y, sw, sh, m_settings->angle, painter()->paintColor(), additionalScale); | ||
177 | 177 | | |||
178 | // The most important line, the one that paints to the screen. | 178 | // The most important line, the one that paints to the screen. | ||
179 | painter()->bitBltWithFixedSelection(x, y, m_hatchedDab, maskDab, sw, sh); | 179 | painter()->bitBltWithFixedSelection(x, y, m_hatchedDab, maskDab, sw, sh); | ||
180 | painter()->renderMirrorMaskSafe(QRect(QPoint(x, y), QSize(sw, sh)), m_hatchedDab, 0, 0, maskDab, | 180 | painter()->renderMirrorMaskSafe(QRect(QPoint(x, y), QSize(sw, sh)), m_hatchedDab, 0, 0, maskDab, | ||
181 | !m_dabCache->needSeparateOriginal()); | 181 | !m_dabCache->needSeparateOriginal()); | ||
182 | painter()->setOpacity(origOpacity); | 182 | painter()->setOpacity(origOpacity); | ||
183 | 183 | | |||
184 | return effectiveSpacing(scale, 0.0); | 184 | return effectiveSpacing(scale); | ||
185 | } | 185 | } | ||
186 | 186 | | |||
187 | double KisHatchingPaintOp::spinAngle(double spin) | 187 | double KisHatchingPaintOp::spinAngle(double spin) | ||
188 | { | 188 | { | ||
189 | double tempangle = m_settings->angle + spin; | 189 | double tempangle = m_settings->angle + spin; | ||
190 | qint8 factor = 1; | 190 | qint8 factor = 1; | ||
191 | 191 | | |||
192 | if (tempangle < 0) | 192 | if (tempangle < 0) | ||
Show All 11 Lines |