From b4995f979d127cea667b4e2b71c91e9db4ab52ef Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Fri, 6 Feb 2026 18:12:40 +0500 Subject: wip --- src/Fl_Tiled_Image.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Fl_Tiled_Image.cxx') 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); } -- cgit v1.2.3