From b027d2ba57a8e0d6f0862e0a891ddd5dee4b02e2 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 26 Feb 2021 18:00:07 +0100 Subject: Windows platform: use GDI+ to antialias oblique lines and curves. --- src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx') diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx index 6dbad2684..c18f7c300 100644 --- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx +++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.cxx @@ -52,6 +52,13 @@ Fl_Graphics_Driver *Fl_Graphics_Driver::newMainGraphicsDriver() return new Fl_Quartz_Graphics_Driver(); } +void Fl_Quartz_Graphics_Driver::antialias(int state) { +} + +int Fl_Quartz_Graphics_Driver::antialias() { + return 1; +} + Fl_Quartz_Graphics_Driver::Fl_Quartz_Graphics_Driver() : Fl_Graphics_Driver(), gc_(NULL) { quartz_line_width_ = 1.f; quartz_line_cap_ = kCGLineCapButt; -- cgit v1.2.3