From 8717f1b25285e132f40c0bfa580c45c29f840082 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 29 Jan 2016 15:59:11 +0000 Subject: A bit more OpenGL cleanup git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11085 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Gl_Device_Plugin.cxx | 39 ------------------------- src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx | 1 + 2 files changed, 1 insertion(+), 39 deletions(-) (limited to 'src') diff --git a/src/Fl_Gl_Device_Plugin.cxx b/src/Fl_Gl_Device_Plugin.cxx index 50ee159b8..2df739627 100644 --- a/src/Fl_Gl_Device_Plugin.cxx +++ b/src/Fl_Gl_Device_Plugin.cxx @@ -31,45 +31,6 @@ #endif - -// FIXME: remove the code below -#if 0 -// ------ this should be in a separate file! ----------------------------------- -#ifdef FL_CFG_GFX_OPENGL - -#include -#include - -#include "drivers/OpenGL/Fl_OpenGL_Graphics_Driver.h" - -Fl_OpenGL_Display_Device *Fl_OpenGL_Display_Device::display_device() { - static Fl_OpenGL_Display_Device *display = new Fl_OpenGL_Display_Device(new Fl_OpenGL_Graphics_Driver()); - return display; -}; - -Fl_OpenGL_Display_Device::Fl_OpenGL_Display_Device(Fl_OpenGL_Graphics_Driver *graphics_driver) -: Fl_Surface_Device(graphics_driver) -{ -} - -const char *Fl_OpenGL_Display_Device::class_id = "Fl_OpenGL_Display_Device"; - -#endif -// ------ end of separate file! ------------------------------------------------ - -#include "drivers/OpenGL/Fl_OpenGL_Graphics_Driver_arci.cxx" -#include "drivers/OpenGL/Fl_OpenGL_Graphics_Driver_color.cxx" -#include "drivers/OpenGL/Fl_OpenGL_Graphics_Driver_font.cxx" -#include "drivers/OpenGL/Fl_OpenGL_Graphics_Driver_image.cxx" -#include "drivers/OpenGL/Fl_OpenGL_Graphics_Driver_line_style.cxx" -#include "drivers/OpenGL/Fl_OpenGL_Graphics_Driver_rect.cxx" -#include "drivers/OpenGL/Fl_OpenGL_Graphics_Driver_vertex.cxx" - -#endif - - - - #if defined(__APPLE__) uchar *convert_BGRA_to_RGB(uchar *baseAddress, int w, int h, int mByteWidth) { diff --git a/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx b/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx index c4e02dc83..b81e481c8 100644 --- a/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx +++ b/src/drivers/OpenGL/Fl_OpenGL_Display_Device.cxx @@ -25,6 +25,7 @@ #include "Fl_OpenGL_Graphics_Driver.h" #include "Fl_OpenGL_Display_Device.h" +// TODO: much of Fl_Gl_Choice should probably go here Fl_OpenGL_Display_Device *Fl_OpenGL_Display_Device::display_device() { static Fl_OpenGL_Display_Device *display = new Fl_OpenGL_Display_Device(new Fl_OpenGL_Graphics_Driver()); -- cgit v1.2.3