diff options
Diffstat (limited to 'src/Fl_Tiled_Image.cxx')
| -rw-r--r-- | src/Fl_Tiled_Image.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_Tiled_Image.cxx b/src/Fl_Tiled_Image.cxx index 2ec62e79a..80846779f 100644 --- a/src/Fl_Tiled_Image.cxx +++ b/src/Fl_Tiled_Image.cxx @@ -185,9 +185,11 @@ Fl_Tiled_Image::draw(int X, // I - Starting X position if (cx > 0) iw -= cx; // crop image if (cy > 0) ih -= cy; - for (int yy = Y; yy < Y+H; yy += ih) { + int yy; + for (yy = Y; yy < Y+H; yy += ih) { if (fl_not_clipped(X,yy,W,ih)) { - for (int xx = X; xx < X+W; xx += iw) { + int xx; + for (xx = X; xx < X+W; xx += iw) { if (fl_not_clipped(xx,yy,iw,ih)) { image_->draw(xx,yy,iw,ih,cx,cy); } |
