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 --- FL/mac.H | 1 - 1 file changed, 1 deletion(-) (limited to 'FL/mac.H') diff --git a/FL/mac.H b/FL/mac.H index 219a23c44..a8a6fc271 100644 --- a/FL/mac.H +++ b/FL/mac.H @@ -181,7 +181,6 @@ public: static void q_begin_image(CGRect&, int x, int y, int w, int h); static void q_end_image(); // Cocoa additions - static int resolution_scaling_factor(Fl_Window*); static NSOpenGLPixelFormat *mode_to_NSOpenGLPixelFormat(int mode, const int*); // computes NSOpenGLPixelFormat from Gl window's mode static NSOpenGLContext* create_GLcontext_for_window(NSOpenGLPixelFormat *pixelformat, NSOpenGLContext *shared_ctx, Fl_Window *window); static void GLcontext_update(NSOpenGLContext*); -- cgit v1.2.3