Changeset View
Changeset View
Standalone View
Standalone View
libs/image/kis_paint_device.cc
Show First 20 Lines • Show All 1437 Lines • ▼ Show 20 Line(s) | |||||
1438 | 1438 | | |||
1439 | void KisPaintDevice::clear(const QRect & rc) | 1439 | void KisPaintDevice::clear(const QRect & rc) | ||
1440 | { | 1440 | { | ||
1441 | m_d->currentStrategy()->clear(rc); | 1441 | m_d->currentStrategy()->clear(rc); | ||
1442 | } | 1442 | } | ||
1443 | 1443 | | |||
1444 | void KisPaintDevice::fill(const QRect & rc, const KoColor &color) | 1444 | void KisPaintDevice::fill(const QRect & rc, const KoColor &color) | ||
1445 | { | 1445 | { | ||
1446 | Q_ASSERT(*color.colorSpace() == *colorSpace()); | 1446 | KIS_ASSERT_RECOVER_RETURN(*color.colorSpace() == *colorSpace()); | ||
1447 | m_d->currentStrategy()->fill(rc, color.data()); | 1447 | m_d->currentStrategy()->fill(rc, color.data()); | ||
1448 | } | 1448 | } | ||
1449 | 1449 | | |||
1450 | void KisPaintDevice::fill(qint32 x, qint32 y, qint32 w, qint32 h, const quint8 *fillPixel) | 1450 | void KisPaintDevice::fill(qint32 x, qint32 y, qint32 w, qint32 h, const quint8 *fillPixel) | ||
1451 | { | 1451 | { | ||
1452 | m_d->currentStrategy()->fill(QRect(x, y, w, h), fillPixel); | 1452 | m_d->currentStrategy()->fill(QRect(x, y, w, h), fillPixel); | ||
1453 | } | 1453 | } | ||
1454 | 1454 | | |||
▲ Show 20 Lines • Show All 716 Lines • Show Last 20 Lines |