Changeset View
Changeset View
Standalone View
Standalone View
imagelib/kpFloodFill.cpp
Show First 20 Lines • Show All 184 Lines • ▼ Show 20 Line(s) | |||||
185 | // Derived from the zSprite2 Graphics Engine | 185 | // Derived from the zSprite2 Graphics Engine | ||
186 | 186 | | |||
187 | // private | 187 | // private | ||
188 | kpColor kpFloodFill::pixelColor (int x, int y, bool *beenHere) const | 188 | kpColor kpFloodFill::pixelColor (int x, int y, bool *beenHere) const | ||
189 | { | 189 | { | ||
190 | if (beenHere) | 190 | if (beenHere) | ||
191 | *beenHere = false; | 191 | *beenHere = false; | ||
192 | 192 | | |||
193 | Q_ASSERT (y >= 0 && y < (int) d->fillLinesCache.count ()); | 193 | Q_ASSERT (y >= 0 && y < static_cast<int> (d->fillLinesCache.count ())); | ||
194 | 194 | | |||
195 | foreach (const kpFillLine &line, d->fillLinesCache [y]) | 195 | foreach (const kpFillLine &line, d->fillLinesCache [y]) | ||
196 | { | 196 | { | ||
197 | if (x >= line.m_x1 && x <= line.m_x2) | 197 | if (x >= line.m_x1 && x <= line.m_x2) | ||
198 | { | 198 | { | ||
199 | if (beenHere) | 199 | if (beenHere) | ||
200 | *beenHere = true; | 200 | *beenHere = true; | ||
201 | return d->color; | 201 | return d->color; | ||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |