From 8a826c257ddd39a429cc54e50792c8968ed14989 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 2 Dec 2015 11:56:25 +0000 Subject: Fix Doxygen docs of new method Fl_Gl_Window::pixels_per_unit(). Moved the docs up (before #ifdef ...) so they are also generated on Mac OS X platforms. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10946 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Gl_Window.H | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FL/Fl_Gl_Window.H b/FL/Fl_Gl_Window.H index 543aa41f3..44e2a8711 100644 --- a/FL/Fl_Gl_Window.H +++ b/FL/Fl_Gl_Window.H @@ -229,9 +229,6 @@ public: // Note: Doxygen docs in Fl_Widget.H to avoid redundancy. virtual Fl_Gl_Window* as_gl_window() {return this;} -#ifdef __APPLE__ - int pixels_per_unit(); -#else /** The number of pixels per FLTK unit of length for the window. Returns 1, except for a window mapped to an Apple 'retina' display, and if Fl::use_high_res_GL(bool) is set to true, @@ -241,6 +238,9 @@ public: Fl::event_y() to the pixel units used by the OpenGL source code. \version 1.3.4 */ +#ifdef __APPLE__ + int pixels_per_unit(); +#else int pixels_per_unit() { return 1; } #endif /** Gives the window width in OpenGL pixels. -- cgit v1.2.3