summaryrefslogtreecommitdiff
path: root/src/drivers/Quartz
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-02-16 09:29:13 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-02-16 09:29:13 +0100
commit1adaa3def2138fafd40b9d9df212a068c57cdbf4 (patch)
tree0898ea907c763d197d5137dc299eef8005c16de1 /src/drivers/Quartz
parent1f55bfe65cc8ca6e7b79efad66a7c304a69b12fe (diff)
Create classes Fl_XXX_Gl_Window_Driver according to driver model.
Diffstat (limited to 'src/drivers/Quartz')
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Copy_Surface_Driver.cxx5
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Graphics_Driver_arci.cxx5
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Graphics_Driver_color.cxx5
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Graphics_Driver_font.cxx6
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Graphics_Driver_line_style.cxx5
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx6
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx6
-rw-r--r--src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx5
8 files changed, 0 insertions, 43 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Copy_Surface_Driver.cxx b/src/drivers/Quartz/Fl_Quartz_Copy_Surface_Driver.cxx
index 4a913abfc..0933a4aa0 100644
--- a/src/drivers/Quartz/Fl_Quartz_Copy_Surface_Driver.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Copy_Surface_Driver.cxx
@@ -14,9 +14,6 @@
// https://www.fltk.org/bugs.php
//
-#include "../../config_lib.h"
-
-#ifdef FL_CFG_GFX_QUARTZ
#include <FL/Fl_Copy_Surface.H>
#include <FL/platform.H>
#include "Fl_Quartz_Graphics_Driver.H"
@@ -86,5 +83,3 @@ void Fl_Quartz_Copy_Surface_Driver::translate(int x, int y) {
void Fl_Quartz_Copy_Surface_Driver::untranslate() {
CGContextRestoreGState(gc);
}
-
-#endif // FL_CFG_GFX_QUARTZ
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_arci.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_arci.cxx
index 2cc7a12e6..4163de685 100644
--- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_arci.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_arci.cxx
@@ -14,9 +14,6 @@
// https://www.fltk.org/bugs.php
//
-#include "../../config_lib.h"
-#ifdef FL_CFG_GFX_QUARTZ
-
#include "Fl_Quartz_Graphics_Driver.H"
#include <FL/platform.H>
@@ -66,5 +63,3 @@ void Fl_Quartz_Graphics_Driver::pie(int x,int y,int w,int h,double a1,double a2)
CGContextFillPath(gc_);
CGContextSetShouldAntialias(gc_, false);
}
-
-#endif // FL_CFG_GFX_QUARTZ
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_color.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_color.cxx
index cd03a8c04..f11c2955d 100644
--- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_color.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_color.cxx
@@ -14,9 +14,6 @@
// https://www.fltk.org/bugs.php
//
-#include "../../config_lib.h"
-#ifdef FL_CFG_GFX_QUARTZ
-
// The fltk "colormap". This allows ui colors to be stored in 8-bit
// locations, and provides a level of indirection so that global color
// changes can be made. Not to be confused with the X colormap, which
@@ -75,5 +72,3 @@ void Fl_Quartz_Graphics_Driver::set_color(Fl_Color i, unsigned c) {
fl_cmap[i] = c;
}
}
-
-#endif // FL_CFG_GFX_QUARTZ
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_font.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_font.cxx
index fe43f0c6c..335e02826 100644
--- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_font.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_font.cxx
@@ -69,10 +69,6 @@
*/
-
-#include "../../config_lib.h"
-#ifdef FL_CFG_GFX_QUARTZ
-
#include "Fl_Quartz_Graphics_Driver.H"
#include "Fl_Font.H"
#include <math.h>
@@ -878,5 +874,3 @@ Fl_Font Fl_Quartz_Graphics_Driver::ADD_SUFFIX(set_fonts, _ATSU)(const char* xsta
}
#endif // HAS_ATSU
-
-#endif // FL_CFG_GFX_QUARTZ
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_line_style.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_line_style.cxx
index 8dfa3090c..8e17f87c5 100644
--- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_line_style.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_line_style.cxx
@@ -14,9 +14,6 @@
// https://www.fltk.org/bugs.php
//
-#include "../../config_lib.h"
-#ifdef FL_CFG_GFX_QUARTZ
-
#include <FL/fl_draw.H>
#include <FL/platform.H>
@@ -84,5 +81,3 @@ void Fl_Quartz_Graphics_Driver::line_style(int style, int width, char* dashes) {
}
quartz_restore_line_style();
}
-
-#endif // FL_CFG_GFX_QUARTZ
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx
index caf4277c4..b238e9a9b 100644
--- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_rect.cxx
@@ -15,9 +15,6 @@
//
-#include "../../config_lib.h"
-#ifdef FL_CFG_GFX_QUARTZ
-
#include <FL/Fl.H>
#include <FL/platform.H>
@@ -297,6 +294,3 @@ void Fl_Quartz_Graphics_Driver::restore_clip() {
}
}
}
-
-
-#endif // FL_CFG_GFX_QUARTZ
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx
index 5ee8f924f..3b0b3f058 100644
--- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver_vertex.cxx
@@ -14,9 +14,6 @@
// https://www.fltk.org/bugs.php
//
-#include "../../config_lib.h"
-#ifdef FL_CFG_GFX_QUARTZ
-
/**
\file quartz_vertex.cxx
\brief Portable drawing code for drawing arbitrary shapes with
@@ -148,6 +145,3 @@ void Fl_Quartz_Graphics_Driver::transformed_vertex0(float x, float y) {
void Fl_Quartz_Graphics_Driver::fixloop() { // remove equal points from closed path
while (n>2 && p[n-1].x == p[0].x && p[n-1].y == p[0].y) n--;
}
-
-
-#endif // FL_CFG_GFX_QUARTZ
diff --git a/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx b/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx
index e0146c8b7..388d2d246 100644
--- a/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx
+++ b/src/drivers/Quartz/Fl_Quartz_Image_Surface_Driver.cxx
@@ -14,9 +14,6 @@
// https://www.fltk.org/bugs.php
//
-#include "../../config_lib.h"
-
-#ifdef FL_CFG_GFX_QUARTZ
#include <FL/platform.H>
#include <FL/fl_draw.H>
#include <FL/Fl_Image_Surface.H>
@@ -137,5 +134,3 @@ void Fl_Quartz_Image_Surface_Driver::end_current()
fl_window = pre_window;
Fl_Surface_Device::end_current();
}
-
-#endif // FL_CFG_GFX_QUARTZ