Simplify loop conditions
Replace the `yPos <= maxYPos)` check in the inner loop with an more explicit check whenever a thumnail is drawn. `(yPos <= maxYPos) && !validThumbnails)` is redundant, as yPos is only incremented whenever validThumbnails is incremented. Move the validThumbnails check into the loop.
parent
78a8c7d3
Please register or sign in to comment