diff options
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx | 6 | ||||
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx | 5 | ||||
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx | 33 | ||||
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx | 2 | ||||
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx | 10 | ||||
| -rw-r--r-- | src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx | 9 |
6 files changed, 58 insertions, 7 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx index 9a16e14e8..976c6f5c3 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_arci.cxx @@ -24,6 +24,12 @@ \brief Utility functions for drawing circles using integers */ +// "integer" circle drawing functions. These draw the limited +// circle types provided by X and NT graphics. The advantage of +// these is that small ones draw quite nicely (probably due to stored +// hand-drawn bitmaps of small circles!) and may be implemented by +// hardware and thus are fast. + #include "Fl_GDI_Graphics_Driver.h" #include <FL/math.h> diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx index 4991c9ccd..ab7bf9332 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_color.cxx @@ -33,9 +33,8 @@ // to co-exist, creating conflicts with multipe mapping. // FIXME: maybe we can forget about color mapping and assume RGB? -//static unsigned fl_cmap[256] = { -//#include "../../fl_cmap.h" // this is a file produced by "cmap.cxx": -//}; +// FIXME: ... but for now we still have it ... +extern unsigned fl_cmap[256]; // defined in fl_color.cxx // Translations to win32 data structures: Fl_XMap fl_xmap[256]; diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx index 6f2504391..ba2dcda4f 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_font.cxx @@ -3,7 +3,7 @@ // // WIN32 font utilities for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2010 by Bill Spitzak and others. +// 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 @@ -16,6 +16,35 @@ // http://www.fltk.org/str.php // +#ifdef WIN32 +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +# endif +/* We require Windows 2000 features such as GetGlyphIndices */ +# if !defined(WINVER) || (WINVER < 0x0500) +# ifdef WINVER +# undef WINVER +# endif +# define WINVER 0x0500 +# endif +# if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0500) +# ifdef _WIN32_WINNT +# undef _WIN32_WINNT +# endif +# define _WIN32_WINNT 0x0500 +# endif +#endif + +// Select fonts from the FLTK font table. +#include "../../flstring.h" +#include <FL/Fl.H> +#include <FL/fl_draw.H> +#include <FL/x.H> +#include "../../Fl_Font.H" + +#include <stdio.h> +#include <stdlib.h> + // This function fills in the FLTK font table with all the fonts that // are found on the X server. It tries to place the fonts into families // and to sort them so the first 4 in a family are normal, bold, italic, @@ -167,7 +196,7 @@ Fl::get_font_sizes(Fl_Font fnum, int*& sizep) { // // WIN32 font selection routines for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2012 by Bill Spitzak and others. +// 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 diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx index 465e73dca..46ce19f10 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx @@ -3,7 +3,7 @@ // // WIN32 image drawing code for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2012 by Bill Spitzak and others. +// 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 diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx index cd84aae0a..385586b2c 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_line_style.cxx @@ -19,6 +19,14 @@ #ifndef FL_CFG_GFX_GDI_LINE_STYLE_CXX #define FL_CFG_GFX_GDI_LINE_STYLE_CXX +#include "../../config_lib.h" +#include <FL/Fl.H> +#include <FL/fl_draw.H> +#include <FL/x.H> +#include <FL/Fl_Printer.H> +#include "../../flstring.h" +#include <stdio.h> + /** \file gdi_line_style.cxx \brief Line style drawing utility hiding different platforms. @@ -26,6 +34,8 @@ #include "Fl_GDI_Graphics_Driver.h" +extern int fl_line_width_; // defined in src/fl_line_style.cxx + void Fl_GDI_Graphics_Driver::line_style(int style, int width, char* dashes) { diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx b/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx index f3077119e..553d7c043 100644 --- a/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx +++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver_rect.cxx @@ -17,12 +17,19 @@ // - /** \file gdi_rect.cxx \brief MSWindows GDI specific line and polygon drawing with integer coordinates. */ +#include <config.h> +#include "../../config_lib.h" +#include <FL/Fl.H> +#include <FL/Fl_Widget.H> +#include <FL/Fl_Printer.H> +#include <FL/fl_draw.H> +#include <FL/x.H> + #include "Fl_GDI_Graphics_Driver.h" |
