From f3e21ddad24bba301a9749b43645581dee2555fb Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 13 Jan 2023 21:16:17 +0100 Subject: Fix for "Rename Fl_X* Fl_Window::i private class member" (#223) --- src/drivers/WinAPI/Fl_WinAPI_Gl_Window_Driver.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/drivers/WinAPI/Fl_WinAPI_Gl_Window_Driver.cxx') diff --git a/src/drivers/WinAPI/Fl_WinAPI_Gl_Window_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Gl_Window_Driver.cxx index e941fa5a9..8d84ab15a 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Gl_Window_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Gl_Window_Driver.cxx @@ -137,7 +137,7 @@ Fl_Gl_Choice *Fl_WinAPI_Gl_Window_Driver::find(int m, const int *alistp) GLContext Fl_WinAPI_Gl_Window_Driver::do_create_gl_context(Fl_Window* window, const Fl_Gl_Choice* g, int layer) { - Fl_X* i = Fl_X::i(window); + Fl_X* i = Fl_X::flx(window); HDC hdc = Fl_WinAPI_Window_Driver::driver(window)->private_dc; if (!hdc) { hdc = Fl_WinAPI_Window_Driver::driver(window)->private_dc = GetDCEx((HWND)i->xid, 0, DCX_CACHE); @@ -186,7 +186,7 @@ void Fl_WinAPI_Gl_Window_Driver::make_overlay_current() { if (overlay() != this) { set_gl_context(pWindow, (GLContext)overlay()); // if (fl_overlay_depth) - // wglRealizeLayerPalette(Fl_X::i(this)->private_dc, 1, TRUE); + // wglRealizeLayerPalette(Fl_X::flx(this)->private_dc, 1, TRUE); } else #endif glDrawBuffer(GL_FRONT); -- cgit v1.2.3