Commit Graph

8376 Commits

Author SHA1 Message Date
Matthias Melcher
a1ebe87a88 STR 3460: removed nanny code for Fluid comments
When writing comments, FLuid would check if the comment was
C compatible. However, comments don;t need to comply to C
syntax. We could check for the "*/", but is that really needed?
2019-01-13 22:42:01 +01:00
Matthias Melcher
1643912e4a Merge branch 'master' of https://github.com/MatthiasWM/fltk 2019-01-13 22:08:47 +01:00
Matthias Melcher
7897787b38 Updated Android build files to newes Android Stduio version 2019-01-13 22:07:38 +01:00
Matthias Melcher
aac0aae320 Updated Android build files to newes Android Stduio version 2019-01-13 21:58:02 +01:00
Albrecht Schlosser
8ba982ae37 Fix Cairo callback drawing (needs flush)
This commit adds a cairo_surface flush after calling the draw callback.
This fixes the test/cairo_test demo program under Windows.

At least under Windows the Cairo callback used in Fl_Cairo_Window
didn't draw anything with current Windows 10, MinGW (32-bit) and
Cairo 1.15.12 for Windows. It worked well under Linux though. Anyway,
the flush should do no harm.
2019-01-12 15:54:57 +01:00
Albrecht Schlosser
1a1492a174 Fix Fl_GIF_Image Color Table handling (STR 3491)
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: 35e03733f4
2019-01-09 18:07:38 +01:00
Manolo Gouy
2bc7816cab Slight reorganization of the [FLWindow close] method.
It might be safer to use the window's contentView before sending the close message to the window.
2019-01-04 17:50:58 +01:00
ManoloFLTK
38b8dfaaea Remove [FLViewLayer dealloc] method.
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-04 17:06:10 +01:00
ManoloFLTK
2575e7ef6b Merge remote-tracking branch 'origin/master' 2019-01-04 16:53:32 +01:00
ManoloFLTK
06fdfaf822 Restore possibility to compile with SDK 10.7 or earlier. 2019-01-04 16:52:26 +01:00
Matthias Melcher
51462930eb
Merge pull request #13 from MatthiasWM/master
Minor Android stuff
2019-01-03 14:46:10 -08:00
Matthias Melcher
46e7612953 Merge remote-tracking branch 'upstream/master' 2019-01-03 23:23:43 +01:00
Matthias Melcher
caacc85685 Added git attribute for MSWindows .BAT files 2019-01-03 23:21:16 +01:00
Matthias Melcher
005a744d68 Android builds tested successfully after changeover to git 2019-01-03 23:16:59 +01:00
Manolo Gouy
8856b96701 Merge remote-tracking branch 'origin/master' 2019-01-02 19:41:59 +01:00
Manolo Gouy
b027da8322 Document global variable fl_sys_menu_bar - continued. 2019-01-02 19:41:44 +01:00
Albrecht Schlosser
f28cead0f0 Add abi-compliance-checker howto.
This is intentionally committed to the 'master' branch although it is
currently only useful for FLTK 1.3.x ABI checks.

In the future we will need it for FLTK 1.4.x or higher.
2019-01-02 15:33:34 +01:00
Manolo Gouy
e118532c72 Document global variable fl_sys_menu_bar - continued. 2018-12-31 16:37:36 +01:00
Manolo Gouy
ca8c5feb16 Document global variable fl_sys_menu_bar. 2018-12-31 16:03:46 +01:00
ManoloFLTK
362f935086 Merge remote-tracking branch 'origin/master' 2018-12-30 11:04:10 +01:00
Manolo Gouy
26bb0e5a83 Under macOS 10.14, Fl_Cocoa_Window_Driver::flush() draws to the bitmap and does [view setNeedsDisplay:YES] 2018-12-30 10:59:53 +01:00
Albrecht Schlosser
de199c327e Add a CMake option to generate driver (developer) documentation.
Generating driver documentation can now be configured with CMake. The new
configuration OPTION_INCLUDE_DRIVER_DOCUMENTATION is "marked as advanced"
since only advanced users and/or FLTK developers need this.

Previously this could only be achieved by editing documentation/Doxyfile.in.

Added missing documentation option descriptions as well.
2018-12-29 20:35:10 +01:00
Matthias Melcher
bf9dfa2afd
Merge pull request #11 from MatthiasWM/master
Fixing STR #2901, Fl_Browser formatting char
2018-12-28 17:25:28 -08:00
Matthias Melcher
bf48acdbe5 Adding documentation for '@N', inactive color. 2018-12-29 02:16:40 +01:00
Matthias Melcher
c099837a3e Also testing # as a format_char() 2018-12-29 02:08:40 +01:00
Matthias Melcher
95ab1dd73e Fixing STR #2901, wrongly escaping the formatting character code in Fl_Browser. 2018-12-29 02:03:49 +01:00
Matthias Melcher
6097bde83c
Merge pull request #10 from MatthiasWM/master
Updated macOS build documentation for 1.4
2018-12-28 16:21:48 -08:00
Matthias Melcher
29fe0c43df Remove obsolete condition to make static analysis happy. 2018-12-29 01:19:51 +01:00
Matthias Melcher
e169b1941f Remove a C style type cast from jpeg_mem_src. 2018-12-29 00:44:39 +01:00
Matthias Melcher
a3ee6cff92 Refactored gl_remove_displaylist_fonts to be more easily readable and to stop triggering static analysis tool. 2018-12-29 00:34:57 +01:00
Albrecht Schlosser
59612f6e7e Activate travis-ci, update mail notifications.
Note: current mail notifications are configured for first tests.
We may need to reconfigure this later.

See build logs at https://travis-ci.com/fltk/fltk
2018-12-28 22:48:13 +01:00
Matthias Melcher
6e7b91ea10
Merge pull request #8 from fltk/feature/travis
Travis implementation supporting  build and doc generation for a matrix of targets
2018-12-28 11:37:46 -08:00
Matthias Melcher
a77ffd1dde Xcode for some reason needs a github account to clone a public github repo. Documentation reflects that now. 2018-12-28 20:28:29 +01:00
Matthias Melcher
70e29f9c7d More fixes. 2018-12-28 19:50:39 +01:00
Matthias Melcher
d58255074d Note if Apple ID or admin access is needed. 2018-12-28 19:37:31 +01:00
Matthias Melcher
2c67ae07dd Directly install command line tools. 2018-12-28 19:29:34 +01:00
Matthias Melcher
9cd6d38465 Added docs for other build options 2018-12-28 19:23:10 +01:00
Matthias Melcher
7c4ac3361a Tested and Working version or macOS command line build README. 2018-12-28 17:25:16 +01:00
Matthias Melcher
f4a0349013 Tested macOS instruction with fresh macOS Mojave install 2018-12-28 16:36:11 +01:00
Matthias Melcher
763248a3ed Easy way to install command line clang and git. 2018-12-28 16:06:59 +01:00
Matthias Melcher
9894117fa6 Putting the 'Contents' together for the macOS README. 2018-12-28 15:35:51 +01:00
Matthias Melcher
f2ddd52f76 Completed README for macOS command line builds. Must still be verified on a clean machine. 2018-12-28 15:07:07 +01:00
fab672000
8c44c9a6b1 As requested implement cmake builds and also implement matrix customization to use a static analyzer and also doc gen in only one target to avoid having too many targets 2018-12-27 21:47:23 -06:00
Matthias Melcher
62ff8695a0 Testing some styles for markdown file. 2018-12-27 16:10:35 +01:00
Matthias Melcher
148acf9e66 Markup mess 2018-12-27 15:32:50 +01:00
Matthias Melcher
9141399a3b Started to rewrite README.OSX.txt as README.macOS.md . Also testing GitHub quirks 2018-12-27 15:29:13 +01:00
Matthias Melcher
75eefbcd42 Fixing some minor lint, found by Pavel Shlyak using PVS studio 2018-12-27 13:05:35 +01:00
fabien
c361b64096 Travis implementation allowing to build four targets on change of master or a matching pattern of feature/*.
This implementation differs from existing fltk-test and also gitlab implementation :
 - minimum, fast light implementation: stripoped all unused constructions compared to other implementations
 - supports successful builds of four targets (linu, osx and then gcc and clang for each of them)
- uses before_script instead of before_install
- uses after_success for building documentation, instead of building always if error
- only builds documentation on linux targets for now (can easily change if future)
2018-12-26 16:19:25 -06:00
fabien
5c7118f8d9 Add documentation on how to build Cairo in Linux Debian and derivatives. 2018-12-25 12:25:35 -06:00
Matthias Melcher
550ba7e105 Testing github 'commit' and 'push' by modifying obsolete documentation in the README files. 2018-12-24 00:03:45 +01:00