From 22af09dae7a2e17f0b1253030fd3cb7c6ce92799 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 2 Dec 2015 09:59:37 +0000 Subject: 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 --- src/Fl_Group.cxx | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/Fl_Group.cxx') diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx index 3ac752613..7b10dc9f3 100644 --- a/src/Fl_Group.cxx +++ b/src/Fl_Group.cxx @@ -105,16 +105,9 @@ static int send(Fl_Widget* o, int event) { } int save_x = Fl::e_x; Fl::e_x -= o->x(); int save_y = Fl::e_y; Fl::e_y -= o->y(); -#ifdef __APPLE__ - Fl_Window *save_e_window = Fl::e_window_; - Fl::e_window_ = o->as_window(); -#endif int ret = o->handle(event); Fl::e_y = save_y; Fl::e_x = save_x; -#ifdef __APPLE__ - Fl::e_window_ = save_e_window; -#endif switch ( event ) { case FL_ENTER: /* FALLTHROUGH */ -- cgit v1.2.3