You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Setting an RGB scaling algorithm doesn't seem to work on windows unless calling Fl_Image::copy(W, H). However on Linux it appears that isn't needed.
To Reproduce
The following program produces different results when setting the scaling to Bilinear or Nearest on Linux. However on Windows it doesn't appear to change things.
Tried with both RGB_scaling and scaling_algorithm.
FLTK 1.4 contains two flags to control image resizing operations
Fl_Image::RGB_scaling(Fl_RGB_Scaling) is used only when Fl_RGB_Image::copy() runs
Fl_Image::scaling_algorithm(Fl_RGB_Scaling) is used only when drawing the image requires it to be scaled by FLTK. This does not occur under Windows 10. Under X11, it does not occur when the Xrender extension is available.
Therefore, if no Fl_RGB_Image::copy() operation is performed, neither of the 2 flags has any effect on image drawing,
unless FLTK was built without the Xrender option.
Describe the bug
Setting an RGB scaling algorithm doesn't seem to work on windows unless calling Fl_Image::copy(W, H). However on Linux it appears that isn't needed.
To Reproduce
The following program produces different results when setting the scaling to Bilinear or Nearest on Linux. However on Windows it doesn't appear to change things.
Tried with both RGB_scaling and scaling_algorithm.
Steps to reproduce the behavior:
Expected behavior
The behavior on windows should mimic Linux in this case.
FLTK Version
Please complete the following information and delete non-applicable lines:
FLTK Configure / Build Options
Operating System / Platform:
Please be as precise as possible, e.g. "Linux: Ubuntu 20.04"
Additional context
Calling Fl_Image::copy(W, H) seems to fix this issue on windows:
But it doesn't appear to be necessary on Linux.
The text was updated successfully, but these errors were encountered: