summaryrefslogtreecommitdiff
path: root/src/Fl_Tiled_Image.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-01-08 11:17:03 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-01-08 11:17:03 +0100
commit09db3a6dea4b6c6d23a81ba32c84e278c1964184 (patch)
tree561fb9e64a0b653d525e9f172a75edef4058bfda /src/Fl_Tiled_Image.cxx
parent222b2ea2e84a9c50a222cce22e19aaba110c6f11 (diff)
Fix "Xrender blurs adjacent images with bilinear scaling" (#633)
Many thanks to @wcout for providing this fix. Xrender now draws images in the same way when tiling images or not when FL_RGB_SCALING_BILINEAR is on. This allows to remove static bool Fl_Tiled_Image::drawing_tiled_image() which becomes unused.
Diffstat (limited to 'src/Fl_Tiled_Image.cxx')
-rw-r--r--src/Fl_Tiled_Image.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Fl_Tiled_Image.cxx b/src/Fl_Tiled_Image.cxx
index cfc89bfb4..2ec62e79a 100644
--- a/src/Fl_Tiled_Image.cxx
+++ b/src/Fl_Tiled_Image.cxx
@@ -20,8 +20,6 @@
#include <FL/Fl_Window.H>
#include <FL/fl_draw.H>
-bool Fl_Tiled_Image::drawing_tiled_image_ = false;
-
/**
The constructors create a new tiled image containing the specified image.
Use a width and height of 0 to tile the whole window/widget.
@@ -183,7 +181,6 @@ Fl_Tiled_Image::draw(int X, // I - Starting X position
if (W == 0 || H == 0) return;
fl_push_clip(X, Y, W, H);
- drawing_tiled_image_ = true;
if (cx > 0) iw -= cx; // crop image
if (cy > 0) ih -= cy;
@@ -197,6 +194,5 @@ Fl_Tiled_Image::draw(int X, // I - Starting X position
}
}
}
- drawing_tiled_image_ = false;
fl_pop_clip();
}