summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Overlay.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-19 19:37:49 +0000
committerManolo Gouy <Manolo>2016-04-19 19:37:49 +0000
commit1e8a53ecc425cb91c39bdff263192fae2c372edb (patch)
tree02943c37fe4e984532109eadb6f752471d76421b /src/Fl_Gl_Overlay.cxx
parent4aa388d4ffb2f62986fb5dc7b06325a4dd0cf56a (diff)
Move private_dc from Fl_X for WIN32 platform to Fl_WinAPI_Window_Driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11664 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Overlay.cxx')
-rw-r--r--src/Fl_Gl_Overlay.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_Gl_Overlay.cxx b/src/Fl_Gl_Overlay.cxx
index d7b5e251d..e82fa22a1 100644
--- a/src/Fl_Gl_Overlay.cxx
+++ b/src/Fl_Gl_Overlay.cxx
@@ -25,7 +25,9 @@
#include <FL/Fl_Gl_Window.H>
#include <stdlib.h>
-#if defined(WIN32) || defined(__APPLE__) // PORTME: platform OpenGL management
+#if defined(WIN32) // PORTME: platform OpenGL management
+#include "drivers/WinAPI/Fl_WinAPI_Window_Driver.H"
+#elif defined(__APPLE__)
#elif defined(FL_PORTING)
# pragma message "FL_PORTING: implement OpenGL hardware overlays if they are availbale in a compatible way. This is rarely needed."
#else
@@ -148,7 +150,7 @@ void Fl_Gl_Window::make_overlay() {
GLContext context = fl_create_gl_context(this, g, 1);
if (!context) {overlay = this; return;} // fake the overlay
- HDC hdc = Fl_X::i(this)->private_dc;
+ HDC hdc = Fl_WinAPI_Window_Driver::driver(this)->private_dc;
overlay = context;
LAYERPLANEDESCRIPTOR pfd;
wglDescribeLayerPlane(hdc, g->pixelformat, 1, sizeof(pfd), &pfd);