summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-02-01Additional fix for STR #2531Matthias Melcher
Wiggeling characters in Fl_Text_Display due to advanced kerning.
2019-02-01STR 2531: Fl_Text_Display no longer wiggles.Matthias Melcher
On MacOS and other systems that support kerning, dragging a selection over text would make the text to the right of the selection jump in x by a fraction of a pixel. The new code makes sure that the text stays rock solid.
2019-01-30STR 3430: fixed Help_View return valueMatthias Melcher
2019-01-28Remove useless statement.ManoloFLTK
2019-01-25Fix Fl_Tree::insert() with pos out ouf range (#18)Albrecht Schlosser
The given position to insert a new item was not checked against the valid range so the program could crash if a position less than zero or greater than children() was given. The position is now clamped to the valid range, i.e. the item is either prepended or appended. Fixes issue #18.
2019-01-24Fix minor text input problem related to dead key previewing.ManoloFLTK
macOS normally previews a dead key and then replaces the preview by the final text after the second key is typed. macOS ≥10.7 also opens an auxiliary window to help choosing among possible characters after some keys (e.g., n, c, o, a) are pressed and maintained for a while. The problem fixed here is that after an auxiliary window has been used, dead keys are no longer previewed. That problem emerged at some undetermined point before 10.14 and after 10.7.
2019-01-21Remove incorrect putenv(buf) call followed by free(buf).ManoloFLTK
2019-01-20Remove unnecessary code related to layer-backed views.ManoloFLTK
That code is not useful if layer-backed views are used only with macOS 10.14.
2019-01-18Update dependencies (now sorted)Albrecht Schlosser
The main dependencies (makedepend files) are now sorted alphabetically with one dependency per line.
2019-01-18Sort makedepend files for better comparabilityAlbrecht Schlosser
The intention is to improve (and minimize) diffs when dependencies are changed and `make depend' is executed. (1) use `makedepend ... -w 20' (2) `sort -u' the resultant file with some more "magic". (1) makes sure that there is only one dependent file per line, (2) makes lines unique since `makedepend' can output one file many times which is redundant and makes diffs hard to read. This uses 'mv', 'grep', and 'sort' in all FLTK library Makefiles. Image libraries are intentionally left for a later update.
2019-01-18Update (remaining) dependenciesAlbrecht Schlosser
2019-01-17Merge branch 'master' of https://github.com/fltk/fltk into AndroidMatthias Melcher
2019-01-17Android CMake: icons, docs, more appsMatthias Melcher
2019-01-16Correct typo in comment.ManoloFLTK
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