summaryrefslogtreecommitdiff
path: root/FL/Fl.H
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2015-12-02 09:59:37 +0000
committerManolo Gouy <Manolo>2015-12-02 09:59:37 +0000
commit22af09dae7a2e17f0b1253030fd3cb7c6ce92799 (patch)
tree9e715f50811df7a6d9a6647a61e289b06371a936 /FL/Fl.H
parent30e572985b24eb685e3d9eb0112017c4fc318b4d (diff)
Mac OS: support for high resolution OpenGL windows.
Methods Fl::event_x_pixel() and Fl::event_y_pixel() committed at r.10941 are removed. Instead method Fl_Gl_Window::pixels_per_unit() is added. The documentation explains in more detail how to write cross-platform FLTK code supporting high resolution OpenGL windows on retina displays. The examples/OpenGL3test.cxx app exercises Fl_Gl_Window::pixels_per_unit(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10945 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl.H')
-rw-r--r--FL/Fl.H26
1 files changed, 0 insertions, 26 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index 3d04838c8..674873637 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -135,9 +135,6 @@ public: // should be private!
static int e_y;
static int e_x_root;
static int e_y_root;
-#ifdef __APPLE__
- static Fl_Window *e_window_;
-#endif
static int e_dx;
static int e_dy;
static int e_state;
@@ -604,29 +601,6 @@ public:
event_x(),event_y().
*/
static int event_y_root() {return e_y_root;}
-#ifdef __APPLE__
- static int event_x_pixel();
- static int event_y_pixel();
-#else
- /** Horizontal position in pixels of the mouse event relative to the Fl_Window it was passed to.
- Generally identical with Fl::event_x(), but for OpenGL windows of macintosh computers
- with a 'retina' display, and if Fl::use_high_res_GL(bool) is set to true,
- the returned position, measured in pixels, differs from Fl::event_x(), measured in FLTK units.
- \version 1.3.4
- */
- static int event_x_pixel() {
- return e_x;
- }
- /** Vertical position in pixels of the mouse event relative to the Fl_Window it was passed to.
- Generally identical with Fl::event_y(), but for OpenGL windows of macintosh computers
- with a 'retina' display, and if Fl::use_high_res_GL(bool) is set to true,
- the returned position, measured in pixels, differs from Fl::event_y(), measured in FLTK units.
- \version 1.3.4
- */
- static int event_y_pixel() {
- return e_y;
- }
-#endif
/**
Returns the current horizontal mouse scrolling associated with the
FL_MOUSEWHEEL event. Right is positive.