Please vote about having the Windows FLTK platform draw oblique lines,
curves and all complex shapes in antialiased form. The result of this change is
visible in the attached snapshot where left elements show the current products
and right elements show the effect of the proposed changes, both under Windows 10.
That code uses GDI+ only when it improves the quality of current drawings,
that is, when drawing non horizontal nor vertical lines or when drawing curves.
All the rest (e.g., text, images, horizontal and vertical lines, rectangles) are
processed unchanged by GDI.
As Ian has reported, drawing with GDI+ is slightly slower than with GDI. This is visible
with the test/doublebuffer program which takes a short but perceivable time
to complete redrawing with its highest number of oblique lines that are drawn with GDI+
in the new code. Notice that line #37 of test/doublebuffer.cxx reads :
// this purposely draws each line 10 times to be slow:
Therefore, It takes an unrealistic number of GDI+ operations for the slowing to be visible.
GDI+ is supported from Windows XP and up. When GDI+ isn't available, the modified
code falls back to GDI. Thus FLTK remains compatible with Windows 95.
Both configure-based and CMake-based builds are taken care of.
My vote is +1
TIA - Manolo
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/b1228649-ecc4-4ef0-bbd7-e47932214b86n%40googlegroups.com.