diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2015-12-02 11:56:25 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2015-12-02 11:56:25 +0000 |
| commit | 8a826c257ddd39a429cc54e50792c8968ed14989 (patch) | |
| tree | 392f5723b09e55b3c50f0a86f23b9cc8dc6fbd49 | |
| parent | 22af09dae7a2e17f0b1253030fd3cb7c6ce92799 (diff) | |
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
| -rw-r--r-- | FL/Fl_Gl_Window.H | 6 |
1 files 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. |
