From dee0f5a82452da4334f269ceaee01f2d3df01bc0 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 9 Feb 2016 12:33:49 +0000 Subject: Strip Graphics Driver related ifdefs. - removed more ifdef's from the graphics drivers - moved functionality into the driver files themselves - updated CMakeList.txt git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11137 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx (limited to 'src/drivers/GDI') diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx new file mode 100644 index 000000000..6e782b2b5 --- /dev/null +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.cxx @@ -0,0 +1,42 @@ +// +// "$Id$" +// +// Rectangle drawing routines for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998-2016 by Bill Spitzak and others. +// +// This library is free software. Distribution and use rights are outlined in +// the file "COPYING" which should have been included with this file. If this +// file is missing or damaged, see the license at: +// +// http://www.fltk.org/COPYING.php +// +// Please report all bugs and problems on the following page: +// +// http://www.fltk.org/str.php +// + + +#include +#include "../../config_lib.h" +#include "Fl_GDI_Graphics_Driver.h" + + +const char *Fl_GDI_Graphics_Driver::class_id = "Fl_GDI_Graphics_Driver"; + +// FIXME: move to printer graphics driver +const char *Fl_GDI_Printer_Graphics_Driver::class_id = "Fl_GDI_Printer_Graphics_Driver"; + +/* + * By linking this module, the following static method will instatiate the + * MSWindows GDI Graphics driver as the main display driver. + */ +Fl_Graphics_Driver *Fl_Graphics_Driver::newMainGraphicsDriver() +{ + return new Fl_GDI_Graphics_Driver(); +} + + +// +// End of "$Id$". +// -- cgit v1.2.3