Commit Graph

7273 Commits

Author SHA1 Message Date
Albrecht Schlosser
7699cce0e2 Please ignore the last commit message (svn r12101).
This is branch-1.4, and that commit was not intended to be in branch-1.4.

branch-1.4 is the current active development branch for FLTK 1.4.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12103 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-11 21:07:54 +00:00
Albrecht Schlosser
768fe9f3ff Final commit to branch-1.3-porting *after* the release of FLTK 1.3.4.
The new development branch is now branch-1.4.

See important notes below.

------------------------------------------------------------------------

Note to svn (subversion) users: This branch (branch-1.3-porting)
is finished since the release of FLTK 1.3.4.

The new development branch is now branch-1.4 -- please checkout a new,
clean svn working copy if you want to get branch-1.4 (previously
branch-1.3-porting).

------------------------------------------------------------------------

Note to Git users: if you used the Git branch 'branch-1.3-porting'
to get the FLTK 1.4 development branch, then you need to switch to
branch-1.4 now, which is the official current development branch.

Please checkout branch-1.4 (after git fetch or git pull), and you're
done.

------------------------------------------------------------------------


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12101 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-11 19:43:49 +00:00
Albrecht Schlosser
d5295c3bf7 Start branch-1.4 after rename from branch-1.3-porting.
Added FLTK 1.3 CHANGES file as CHANGES_1.3, updated CHANGES to start
release info (changelog) for FLTK 1.4.

You can update the svn configuration of your working to get this
branch if you previously used branch-1.3-porting:

 $ svn switch http://seriss.com/public/fltk/fltk/branches/branch-1.4

If you used branch-1.3 previously we recommend to checkout the new
branch-1.4 in a new working copy.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-11 17:55:44 +00:00
Albrecht Schlosser
aafd21a6d4 Create branch-1.4 from branch-1.3-porting.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12098 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-11 17:21:48 +00:00
Manolo Gouy
2fd5752b89 Fl_Quartz_Graphics_Driver::uncache() should also reset mask_.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12095 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-10 19:58:20 +00:00
Manolo Gouy
a873e414bd Fix possible crash when turning fullscreen the scroll test program.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12091 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-09 20:55:50 +00:00
Manolo Gouy
c530cdeda6 Use Fl_Graphics_Driver::default_driver() when convenient.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12088 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-09 09:49:48 +00:00
Manolo Gouy
f08c414485 Reuse the same "data provider release callback" several times.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12087 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-09 07:00:16 +00:00
Manolo Gouy
a5b584f8f6 MacOS: use less temporary copies of image data for image printing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-08 21:59:26 +00:00
Manolo Gouy
0c878d136c MacOS: fix possible issue with fullscreen windows containing hidden subwindows
An error occurred with the tabs test program
- activate the last tab (containing 3 subwindows)
- activate another tab (the subwindows get hidden)
- set window fullscreen ===> the subwindows are visible and they should not
- reactivate the last tab ===> the subwindows are not where they should be

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12083 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-06 18:28:24 +00:00
Manolo Gouy
214b3c32b5 MacOS: another way to make sure windowDidResize does not access Fl_Window after [FLWindow close] message was sent
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12082 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-06 18:20:58 +00:00
Albrecht Schlosser
49a2e4206e Fix test/native-filechooser help display artefact (STR #3349).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12081 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-06 10:48:40 +00:00
Manolo Gouy
6eea76e187 Slightly improve the parameter list of member function int Fl_Graphics_Driver::start_image(...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12079 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-05 06:00:52 +00:00
Manolo Gouy
0c31411df9 Rename Fl_Bitmap::start() to Fl_Bitmap::prepare().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-03 21:28:09 +00:00
Manolo Gouy
95a9edcb55 Factorize repeated code across platform-specific graphics drivers and image types
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12077 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-03 16:34:13 +00:00
Manolo Gouy
d3f1a3c167 Replace declarations such as "friend class Fl_Xlib_Graphics_Driver;" by platform-independent declarations.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12076 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-02 21:08:15 +00:00
Manolo Gouy
5c2a7d9fed Close small memory leak in Fl_File_Chooser: a bad image file creates an Fl_Shared_Image but never releases it.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12075 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-02 14:36:29 +00:00
Albrecht Schlosser
fdbf426782 Accept empty Fl_Pixmap in Fl_RGB_Image c'tor (STR #3348).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-02 11:50:18 +00:00
Albrecht Schlosser
af2dc3bce8 Minor CMake documentation clarification.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12070 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-01 20:45:42 +00:00
Manolo Gouy
2714c7600e MacOS: fix crash when closing a fullscreen window - continued
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-01 16:38:37 +00:00
Manolo Gouy
16d62ebbd4 MacOS: fix crash when closing a fullscreen window
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12067 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-01 16:36:08 +00:00
Albrecht Schlosser
351736c320 Documentation updates (IDE and CMake support).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12066 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-01 15:18:31 +00:00
Manolo Gouy
3e8e2ea62e Replace erroneous bitwise & by logical &&
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-30 20:55:31 +00:00
Manolo Gouy
62046664c7 Complete introduction of virtual Fl_RGB_Image *Fl_Image::as_rgb_image() begun at r.12061
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-30 19:56:27 +00:00
Manolo Gouy
3ae2b1d74e Add virtual Fl_RGB_Image* Fl_Image::as_rgb_image() to detect whether an Fl_Image is derived from Fl_RGB_Image
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12061 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-30 07:26:13 +00:00
Albrecht Schlosser
2c043fb5b3 Fix string truncation in fluid (STR #2722 continued).
This commit fixes the truncated string drawing that was partly fixed
in svn r 9112 (FLTK 1.3.1, 2011-10-01).

Combined port of svn r 12057 and 12059. The latter adds sanity checks
and fixes potential buffer overflows.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-28 21:42:42 +00:00
Manolo Gouy
4567268d2a MacOS: fix a small problem where command Quit of the application menu may not work if Fl_Native_File_Chooser is used before any window is shown.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12056 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-27 16:41:05 +00:00
Manolo Gouy
bbfd919773 WIN platform: implement Fl_GDI_Graphics_Driver::draw_scaled(Fl_Image *img,int,int,int,int) when img is a Fl_RGB_Image
Implementation uses StretchBlt() when img->d() is  1 or 3 and AlphaBlend() when it is 2 or 4.
This should turn useful to draw images on HighDPI displays using the display's true resolution.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12053 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-22 11:42:20 +00:00
Manolo Gouy
52479a5ef1 Reorganize and simplify function Fl_Graphics_Driver::draw(Fl_Shared_Image *, int, int)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-21 04:51:15 +00:00
Manolo Gouy
8970b21aa2 Remove erroneous uses of sizeof(filename) where filename is a char* and not a char array
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12051 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-19 17:25:53 +00:00
Manolo Gouy
da276e6efa Add one more argument to virtual Fl_System_Driver::file_browser_load_filesystem() giving length of the filename argument
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-19 08:40:41 +00:00
Manolo Gouy
ec41e1a59b Make sure "/" is always in the list of file systems reported by Fl_File_Chooser (Unix/Linux platform)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12049 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-19 08:31:48 +00:00
Greg Ercolano
43c98c7c90 Bring over combined fix [r12044] from 1.3 current to the porting branch.
Applied patch from STR #3335 to fix simple GUI issues.
 


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12045 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 19:20:36 +00:00
Greg Ercolano
de4572ffdd Bring over combined fix [r12041/12042] from 1.3 current to the porting branch.
Added line numbers to Edit -> Show Source Code viewer (source + header tabs)
Fixes Aditya Siram's observation today on fltk.coredev.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12043 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 17:00:58 +00:00
Albrecht Schlosser
5404646bb5 Update bundled config.sub to a slightly newer version.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 13:10:43 +00:00
Albrecht Schlosser
183797e4a3 Minor fix of tree demo program (show tree widgets).
Clicking "Rebuild Tree" after "Close All" did not show the widgets
(Fl_Input test, ccc button, D1, D2). This is now fixed.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 12:51:58 +00:00
Albrecht Schlosser
bacced2c92 Add non-const version of Fl_Tree_Item::tree().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 12:51:05 +00:00
Albrecht Schlosser
ae419c9dd9 Documentation updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-16 21:04:24 +00:00
Manolo Gouy
fc62d39db5 Add Doxygen note that class Fl_Device_Plugin is not intended for public use.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-16 15:12:46 +00:00
Albrecht Schlosser
e3670dfda6 Fix inconsistent interpretation of ld() in image handling (STR #3308).
Documentation has been fixed and clarified, and ld() handling is now
consistent in Fl_(RGB_)Image, their subclasses and fl_draw_image()
and similar functions.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-14 16:35:52 +00:00
Albrecht Schlosser
242d5365e6 Documentation fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12027 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-14 14:33:18 +00:00
Manolo Gouy
7a81273a0c MacOS: finer control of the compilation conditions under which Core text and ATSU are used or not.
The compilation conditions depend on the targeted architecture, what version of the SDK is used,
and what MacOS deployment version is used. Under most conditions, a single API is possible,
and no pointer-to-member function is used.
But the code supports building apps that can run both APIs depending on the version of the
running MacOS.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12025 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-14 09:17:15 +00:00
Manolo Gouy
2b5fbbacfc Add public: to definition of class Fl_Quartz_Printer_Graphics_Driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12024 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-11 07:17:04 +00:00
Manolo Gouy
04f1e4d1aa Replace .h by .H in #include "Fl_Quartz_Graphics_Driver.h"
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-11 07:14:47 +00:00
Manolo Gouy
a6a79d80f3 Re-organisation of code to support CoreText and ATSU for drawing text.
We avoid using one CoreText-related and one ATSU-related derived classes
of class Fl_Quartz_Graphics_Driver. Thus, class Fl_Quartz_Graphics_Driver can
be derived if useful and still support both text APIs.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12022 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-10 21:19:39 +00:00
Manolo Gouy
0250b4af12 Remove Fl_Xlib_Graphics_Driver::global_gc() because identical to Fl_Graphics_Driver::global_gc()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12019 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-07 06:12:33 +00:00
Manolo Gouy
07f2fcd308 Fl_Graphics_Driver::global_gc() is already implemented in Fl_Graphics_Driver.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-07 06:04:28 +00:00
Manolo Gouy
311c7d9b24 Correct function Fl_GDI_Graphics_Driver::gc(void*) that did not update the global variable fl_gc correctly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12017 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-06 17:03:30 +00:00
Manolo Gouy
b20e646676 Correct function Fl_Quartz_Graphics_Driver::gc(void*) that did not update the global variable fl_gc correctly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12016 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-06 16:59:37 +00:00
Manolo Gouy
c7c238675a Introduce virtual void Fl_Menu_Bar::update() with a platform-specific reimplementation to support Fl_Sys_Menu_Bar.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-06 16:42:59 +00:00