FLTK logo

Re: [fltk.coredev] Vote about using antialiased lines and curves on the Windows platform

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Vote about using antialiased lines and curves on the Windows platform Albrecht Schlosser May 21, 2021  
 
On 5/19/21 2:03 PM Manolo wrote:

On Wednesday, May 19, 2021 at 1:34:10 PM UTC+2 Albrecht Schlosser wrote:
Manolo, could you imagine to do the same (line drawing only) work with Direct2D as Ian suggested? I'm asking this because you're the one who knows all that driver stuff best, and now that you have done it with GDI+, can you estimate the effort necessary to do this?
No way. I don't know Direct2D and don't want to invest time in this MS-only API.

I understand that. Thanks for your ongoing work on improving FLTK!

Please don't understand me wrong, it's just a thought. Since MS seems to have given up on GDI+, wouldn't it be a step backwards if we introduced GDI+ now? Maybe MS will drop support in a future version or ... (who knows?).
MS has been maintaining back compatibility very seriously for many years. The exact opposite of what Apple does.

Indeed.

Side note, FTR:

The new code implements "only some GDI+ drawing methods" on top of the GDI driver which manifests in the following diffs (not taking into account the minor and straight-forward build system related changes):

$ git status
On branch GDI+soft_rebased
$ git diff --stat master -- src/Fl_win32.cxx src/drivers/
 src/Fl_win32.cxx                                      |   3 +
 src/drivers/GDI/Fl_GDI_Copy_Surface_Driver.cxx        |   4 +-
 src/drivers/GDI/Fl_GDI_Graphics_Driver.H              |  44 ++++++++++
 src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx            |  33 ++++++++
 src/drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx       |  24 ++++++
 src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx      |  12 +++
 src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx       |   2 +
 src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx |  48 +++++++++++
 src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx       |  86 +++++++++++++++++++
 src/drivers/GDI/Fl_GDI_Graphics_Driver_vertex.cxx     | 123 ++++++++++++++++++++++++++++
 src/drivers/GDI/Fl_GDI_Image_Surface_Driver.cxx       |   2 +-
 11 files changed, 378 insertions(+), 3 deletions(-)


I assume the same driver methods could be implemented using Direct2D in the future if this turns out to be doable by someone knowing this API and willing to do it. That is, if we can combine Direct2D with GDI in the same way it is done now with GDI and GDI+.

The backwards compatibility issue (Direct2D not available prior to Windows Vista) shouldn't be a problem because this would be an improvement that's just not available to older systems.

--
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/3f0b6ce1-cbd3-b21a-ce32-9eb919630144%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.