Skip to content
Snippets Groups Projects
Commit fd731a65 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix for fltk 1.4

parent 9a6860d7
No related branches found
No related tags found
No related merge requests found
......@@ -368,6 +368,8 @@ FlGui::FlGui(int argc, char **argv)
// use retina resolution if available
#if (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 3) && (FL_PATCH_VERSION >= 4)
Fl::use_high_res_GL(CTX::instance()->highResolutionGraphics);
#elif (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION >= 4)
Fl::use_high_res_GL(CTX::instance()->highResolutionGraphics);
#endif
// register image formats not in core fltk library (jpeg/png)
......
......@@ -717,6 +717,8 @@ int openglWindow::pixel_w()
{
#if (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 3) && (FL_PATCH_VERSION >= 4)
return Fl_Gl_Window::pixel_w();
#elif (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION >= 4)
return Fl_Gl_Window::pixel_w();
#else
return w();
#endif
......@@ -726,6 +728,8 @@ int openglWindow::pixel_h()
{
#if (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION == 3) && (FL_PATCH_VERSION >= 4)
return Fl_Gl_Window::pixel_h();
#elif (FL_MAJOR_VERSION == 1) && (FL_MINOR_VERSION >= 4)
return Fl_Gl_Window::pixel_h();
#else
return h();
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment