summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
AgeCommit message (Collapse)Author
2020-11-17Fix whitespace and minor formatting issuesAlbrecht Schlosser
2020-10-12Simpler macOS implementation of capture of window titlebars.ManoloFLTK
2020-10-11Change procedure to capture window titlebar for macOS ≥ 10.15ManoloFLTK
That is necessary to support macOS Big Sur because previous procedure did not work for tabbed windows. The new procedure is potentially usable from macOS 10.5, but tested at this stage for macOS ≥ 10.15.
2020-10-05Fix for issue #145 and for unbundled macOS apps.ManoloFLTK
2020-09-19Fix when building with SDK 10.15 and running with 11.0 Big SurManoloFLTK
When FLTK runs under macOS "Big Sur", the OS appears as 11.0 if FLTK was built with SDK 11.0 and as 10.16 it it was built with SDK 10.15.
2020-09-07Further minor change to support macOS 11.0 "Big Sur".ManoloFLTK
2020-08-17Make recent changes to support macOS 11.0 "Big Sur" active with 11.0 only.ManoloFLTK
An optimisation used for drawing to windows is not possible under 11.0. This commits reinstalls it under macOS 10.14 and 10.15.
2020-08-11Slightly simpler code in the drawRect:(NSRect) methodManoloFLTK
2020-08-10Add support of macOS 11.0 "Big Sur".ManoloFLTK
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
2020-07-27Fix for "Crashing regression in MacOS code" in fltk.coredev.ManoloFLTK
2020-07-24Fix problem when calling Fl_Window::fullscreen_off() in certain circumstances.ManoloFLTK
The problem was discovered in fltk.coredev "Crashing regression in MacOS code"
2020-07-17Restore use of virtual Fl_Window::resize() to be notified when window moves.ManoloFLTK
A previous commit c66caf5dce9331fd3e011873711a768adb28cf9d "Simpler implementation of Fl_Cocoa_Window_Driver::resize()" made that Fl_Window::resize() was no longer called by FLTK when a window is moved. This prevented the undocumented practice of re-implementing the virtual function Fl_Window::resize() and use it as a way to get a notification that a window was moved.
2020-07-11Simpler code to support layer-based views that occur when macOS ≥ 10.14ManoloFLTK
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-06-15Allow using an Fl_SVG_Image object as window icon.ManoloFLTK
Fix for issue #90: Setting an svg image as a window icon causes a segfault.
2020-06-10Fix for "Fullscreen_off removing the icon from the titlebar on MacOS" in ↵ManoloFLTK
fltk.coredev
2020-06-02Fix for PR#86: mousewheel simultaneous X and Y scrolling under OS X .ManoloFLTK
Thanks to the OP for most of the fix.
2020-06-01Avoid repeated calls to CGBitmapContextGetBytesPerRow().ManoloFLTK
2020-05-31Have NSAutoreleasePool released after last use of variable eManoloFLTK
2020-05-31Protect NSHomeDirectory() call by an NSAutoreleasePool.ManoloFLTK
That may be necessary if preferences are accessed before fl_open_display() was called.
2020-05-20Reorganise code that captures on-screen window content.ManoloFLTK
Also introduce new rect_to_NSBitmapImageRep: method of class FLWindow which makes it possible to reimplement it.
2020-05-08Replace Fl_Window_Driver::is_a_rescale() by Fl_Window::is_a_rescale()ManoloFLTK
so it can be called by any user code.
2020-04-21Slightly improve drawing of window titlebars.ManoloFLTK
2020-03-11Remove CodeWarrior "support"Albrecht Schlosser
Metrowerks CodeWarrior was an ancient macOS compiler (discontinued since 2005) that defined the macro __MWERKS__. Code using this macro and several comments have been removed.
2020-02-28Fl_Sys_Menu_Bar: make it strict equivalent of Fl_Menu_Bar outside macOSManoloFLTK
2020-02-09Restore macOS capacity to turn window fullscreen encompassing several screens.ManoloFLTK
2020-02-07Fix Fl_Cocoa_Window_Driver::resize when called before the window is show()'n.ManoloFLTK
2020-02-06Fix computation of Fl_Window::decorated_h() on macOS when screen is scaled.ManoloFLTK
2020-01-19Have Fl_Quartz_Copy_Surface_Driver use retina resolution for resulting bitmapManoloFLTK
2020-01-18Use visible size information when copying macOS image from clipboard.ManoloFLTK
2020-01-14Fix typo in commentManoloFLTK
2020-01-13Bring main window to front when it's not there.ManoloFLTK
2020-01-11Implement Fl_Window::icon() and default_icon() for macOSManoloFLTK
The implementation is effective for macOS 10.10 and above. Demo program test/device uses the new implementation.
2020-01-04MacOS: Added the original code to the Fl_Preferences path that would search ↵Matthias Melcher
$HOME first, and only if that fails, we try other ways to find the home directory. This should be highly compatible with what we had first.
2020-01-03macOS: checking Fl_Preferences file path improvedMatthias Melcher
zlib: removed warning
2019-12-20Fix problems after closing full-screen windowManoloFLTK
macOS strangely sends NSViewFrameDidChangeNotification and a drawRect: message to its content view after having sent to the window the close message. That is apparently new in 10.15.2
2019-12-19Fix support of screen scaling under macOSManoloFLTK
2019-11-09Undo commit b1bcd1f that was not necessary.ManoloFLTK
2019-11-08Safer control of memory allocation of aux_bitmap member of FLViewManoloFLTK
2019-10-26Restore support of OpenGL on retina without Fl::use_high_res_GL(1)ManoloFLTK
Apparently the default value of the wantsBestResolutionOpenGLSurface property changed with macOS Catalina 10.15
2019-10-20Avoid useless code when drawing directly.ManoloFLTK
2019-10-14Rewrite for macOS 10.15 CatalinaManoloFLTK
Another way to support what occurs under macOS 10.15 where the bitmap graphics context prepared by the system when drawRect: runs sometimes changes its number of bytes/row even if the width and height are unchanged. This is expected to perform better when the number of bytes/row alternates between two values.
2019-10-12Fix for macOS Catalina 10.15ManoloFLTK
Under Catalina, the bitmap graphics context prepared by the system when drawRect: runs sometimes changes its number of bytes/row even if the width and height are unchanged.
2019-10-09Faster processing of layer-backed views used with MacOS ≥ 10.14ManoloFLTK
Calls to CGBitmapContextCreateImage() and CGContextDrawImage() are replaced by faster calls to memcpy().
2019-09-24Faster drawing of layer-based windows if entirely redrawnManoloFLTK
2019-08-27Fix window moving between retina/non-retina display with a GL subwindow.ManoloFLTK
2019-08-21Fix a case when fl_read_window() did not capture subwindows correctly.ManoloFLTK
The case was under macOS with a non-GL parent window mapped to a retina display containing a GL subwindow and if the app did not call Fl::use_high_res_GL(1).
2019-08-19Avoid repetition of the same multiplication.ManoloFLTK
2019-08-18Improved implementation of layer-backed views under macOS ≥ 10.14ManoloFLTK
This new implementation does all screen drawing through the drawRect: method. The benefit is that [[NSGraphicsContext currentContext] CGContext] provides a system-built drawing context whose product ultimately appears on screen. Feed-back from the fldigi FLTK application shows that this procedure is measurably faster that the previous one when drawing a rapidly changing image.