diff --git a/src/common/tvgArray.h b/src/common/tvgArray.h index 0ecb2261..ff11eeae 100644 --- a/src/common/tvgArray.h +++ b/src/common/tvgArray.h @@ -181,7 +181,6 @@ struct Array return count == 0; } - bool full() { return count == reserved; diff --git a/src/renderer/sw_engine/tvgSwRle.cpp b/src/renderer/sw_engine/tvgSwRle.cpp index 1b8830f6..3961082c 100644 --- a/src/renderer/sw_engine/tvgSwRle.cpp +++ b/src/renderer/sw_engine/tvgSwRle.cpp @@ -902,7 +902,7 @@ bool rleClip(SwRle *rle, const SwRle *clip) } //try clipping with all clip spans which have a same y-coordinate. auto temp = cspans; - while(temp->y == cspans->y && temp < cend) { + while(temp < cend && temp->y == cspans->y) { //span must be left(x1) to right(x2) direction. Not intersected. if ((spans->x + spans->len) < spans->x || (temp->x + temp->len) < temp->x) { ++temp;