summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-01-09Fix Fl_GIF_Image Color Table handling (STR 3491)Albrecht Schlosser
Loading GIF images could crash if there was no "Global Color Table" but individual "Local Color Tables" with individual images. Now local color tables are used correctly if available, but images that lack both global and local color tables are being loaded with a default (gray) color table and a warning is issued with Fl::warning(). The default color table uses black and white in the first two indices as recommended by the standard. Cherry-picked from: 35e03733f48397819902a4ef2ebff9bcb8676f54
2019-01-04Slight reorganization of the [FLWindow close] method.Manolo Gouy
It might be safer to use the window's contentView before sending the close message to the window.
2019-01-04Remove [FLViewLayer dealloc] method.ManoloFLTK
The Apple doc recommends not to release resources in an object's dealloc method. The job is now done in the [FLWindow close] method.
2019-01-04Restore possibility to compile with SDK 10.7 or earlier.ManoloFLTK
2018-12-30Merge remote-tracking branch 'origin/master'ManoloFLTK
2018-12-30Under macOS 10.14, Fl_Cocoa_Window_Driver::flush() draws to the bitmap and ↵Manolo Gouy
does [view setNeedsDisplay:YES]
2018-12-28Merge pull request #11 from MatthiasWM/masterMatthias Melcher
Fixing STR #2901, Fl_Browser formatting char
2018-12-29Fixing STR #2901, wrongly escaping the formatting character code in Fl_Browser.Matthias Melcher
2018-12-28Merge pull request #10 from MatthiasWM/masterMatthias Melcher
Updated macOS build documentation for 1.4
2018-12-29Remove obsolete condition to make static analysis happy.Matthias Melcher
2018-12-29Remove a C style type cast from jpeg_mem_src.Matthias Melcher
2018-12-29Refactored gl_remove_displaylist_fonts to be more easily readable and to ↵Matthias Melcher
stop triggering static analysis tool.
2018-12-27Fixing some minor lint, found by Pavel Shlyak using PVS studioMatthias Melcher
2018-12-16Fix another clang-tidy warning (issue #5, part 1).Albrecht Schlosser
See https://github.com/fltk/fltk/issues/5 As Manolo pointed out the questionable variable was not used (read) in this case of the switch statement, hence it can be removed.
2018-12-15Fix clang-tidy unused variable warning (issue #5, part 3).Albrecht Schlosser
https://github.com/fltk/fltk/issues/5
2018-12-11Quick fix: menu disappearing (STR #3503 continued)Albrecht Schlosser
Quick fix to repair a case when Fl_Menu_Item::pulldown() was called with only five arguments (argument pbutton == null) as discussed here: https://github.com/fltk/fltk/commit/d87ac9b59783dec5628e7ae242b390cf5097b77a#comments
2018-12-10Rename README files to README.txt (and several similar files).Albrecht Schlosser
Files without '.txt' suffix can't be handled well by Windows (users), hence renaming such text files to *.txt makes FLTK more "Windows-friendly". There are a few exceptions (this is intentional): README and other files in bundled libraries (maintained upstream) are not changed.
2018-12-09macOS: creation of window with subwindow in iconized form - continued.ManoloFLTK
With macOS 10.13 and 10.14 at least, recursivelySendToSubwindows:@selector(display) is not necessary in the new procedure where the window icon is computed in windowDidMiniaturize rather than in windowWillMiniaturize as was done before.
2018-12-08macOS Mojave: fix window with subwindow created in iconized form - continuedManoloFLTK
Some more changes needed to keep support of MacOS < 10.5
2018-12-08macOS Mojave: fix window with subwindow created in iconized form.ManoloFLTK
2018-12-07Complete fix for STR #3503 (Fl_Choice).Albrecht Schlosser
Fl_Choice::handle() needs to be fixed as well.
2018-12-07Merge remote-tracking branch 'origin/master'Manolo Gouy
2018-12-07macOS comment only: refer to OS 10.14.2 gone public now.Manolo Gouy
2018-12-07Fix crash if menu is deleted while menu is open (SGR #3503).Albrecht Schlosser
This can happen if a menu widget (e.g. Fl_Choice) is deleted in a timer callback while the menu is open (pulldown active).
2018-12-05New static member function: Fl_Device_Plugin *Fl_Device_Plugin::opengl_plugin()ManoloFLTK
2018-12-04Define useful implementations of Fl_Graphics_Driver::push_no_clip() and ↵ManoloFLTK
pop_clip().
2018-12-04Give a meaningful default implementation to a few more member functions of ↵ManoloFLTK
class Fl_Graphics_Driver.
2018-12-02Comment only: to try push with gitManoloFLTK
2018-11-30macOS: rewrite opengl_plugin_device() to use less memory.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13143 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-30Comments only: correct the header of 2 source files.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13142 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-30Remove unused arguments from the Fl_Device_Plugin::print() member function.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13141 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-29Use the Fl_Gl_Device_Plugin mechanism to simplify the construction of a ↵Manolo Gouy
layer-backed GL window. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13140 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-29Fix FL_PUSH event handling of Fl_Check_Browser (STR #3004).Albrecht Schlosser
Test if the FL_PUSH event is inside the widget area and inside the scrollbars (if scrollbars are visible). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13138 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-28Create default implementation of Fl_Screen_Driver::get_system_scheme() and ↵Manolo Gouy
use it for macOS and Windows. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13137 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-26Windows: Have Fl::x(), Fl::y(), Fl::w() and Fl::h() change their values when ↵Manolo Gouy
the screen is rescaled. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13134 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-26MacOS: slightly simpler implementation of ↵Manolo Gouy
Fl_Cocoa_Window_Driver::wait_for_expose(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13133 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-23MacOS: further support of scenarios mixing miniaturize/deminiaturize/change ↵Manolo Gouy
screen configurations. Test scenario: - use 2-screen configuration, one retina, one non-retina as main screen - put subwindow-containing window on retina - miniaturize window - close retina screen - de-miniaturize window The subwindow was wrong without this change. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-22MacOS: fix redraw of subwindow when display resolutions before miniaturize ↵Manolo Gouy
and after deminiaturize differ. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13129 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-21macOS: remove two useless statements for layer-backed OpenGL windows.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-20Minor reorder of operations performed when layered window is 1st drawn.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13127 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-20macOS: reorganize the code running when windows are moved between retina and ↵Manolo Gouy
non-retina displays. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-16MacOS: introduce classes FLViewLayer and FLGLViewLayer to handle ↵Manolo Gouy
layer-backed views. Both new classes are derived from FLView. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13124 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-16MacOS: simpler implementation of extra code necessary at first display of ↵Manolo Gouy
layer-backed GL windows git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13123 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-10Account for property graphicsPort of NSGraphicsContext being deprecated in 10.14Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13121 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-09Fix macOS 10.14 Mojave support of the FLTK-cairo interface.Manolo Gouy
After experimenting with a modified cairo_test program that draws both with cairo and with regular FLTK drawing functions to the same window, it seems necessary to control for possible changes to the graphics context made by cairo in Fl_Cocoa_Window_Driver::make_current() rather than in cairo_create_surface(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13119 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-08Add guard against gl_draw(const char*, int) called with null 2nd argument.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-05Fix comment only (wrong STR number).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-02Further fix to support gl_start()/gl_finish() under MacOS platform.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-02MacOS Mojave and gl_start(): fix for 10.14 but not 10.14.1Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13108 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-01Add useful castManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13106 ea41ed52-d2ee-0310-a9c1-e6b18d33e121