Commit Graph

7289 Commits

Author SHA1 Message Date
Manolo Gouy
e24409e3ed Remove change at r.12120 because STR#3353 note #6 shows it is not OK.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12122 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-19 08:01:06 +00:00
Albrecht Schlosser
6d4b93e9c7 Finally remove FLTK_ABI_VERSION preprocessor macro from code.
FLTK_ABI_VERSION has been renamed to FL_ABI_VERSION in FLTK 1.4.0.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12121 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-19 01:20:53 +00:00
Manolo Gouy
18d478055e Fix for STR#3353: bad depth-2 image drawing when the window is resized smaller than the image.
The problem is specific to the X11 platform. The cause is that depth-2 images were not considered
in a previous change (r.10628) that introduced transparent image drawing with alpha blending.
Depth-2 images can be processed just as depth-4 images with alpha-blending.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12120 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-18 15:32:33 +00:00
Manolo Gouy
5cf12d94cb X11 platform: Fl_RGB_Image::mask_ is always 0, so remove code to process mask_ in Fl_Xlib_Graphics_Driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12119 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-18 15:02:34 +00:00
Manolo Gouy
d2378be968 Remove commented out code for what used to be : static int start_rgb()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12118 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-18 14:41:20 +00:00
Manolo Gouy
22e6b7b4a3 Fix crash when resizing double-buffered window smaller than transparent image (STR#3353).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-17 17:49:43 +00:00
Manolo Gouy
4b6dfbfb4c WIN32 platform: Fix drawing of depth-4 scaled image when can_do_alpha_blending() is false.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12116 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-17 13:52:16 +00:00
Manolo Gouy
10cddcd501 Remove file fl_line_style.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-16 20:01:19 +00:00
Manolo Gouy
2baeda448b Replace global fl_line_width_ used only by X11 platform by Fl_Xlib_Graphics_Driver::line_width_
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-16 19:56:22 +00:00
Albrecht Schlosser
44ce401d45 Fix shared library build.
Missing FL_EXPORT statements (attributes) affected only the configure/make
build because some compiler and linker options (visibility etc) are not
yet implemented in the CMake build.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-16 14:04:57 +00:00
Albrecht Schlosser
e8fcc915e0 Remove obsolete comments from src/Makefile.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-16 13:24:04 +00:00
Manolo Gouy
3b7d9185ef Remove compilation warning apparent with -Wnull-conversion
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12108 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-14 15:00:37 +00:00
Albrecht Schlosser
169a8ee238 Avoid "empty translation unit" compiler warning.
gcc "warning: ISO C forbids an empty translation unit [-Wpedantic]"


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12107 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-12 13:49:48 +00:00
Albrecht Schlosser
1358c434b2 Rename misspelled files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12106 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-12 13:28:53 +00:00
Albrecht Schlosser
8cdfb926f2 Reformat CHANGES and update dependencies (make depend).
Saved a few columns in CHANGES so more text fits in 80 columns.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12105 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-12 13:09:20 +00:00
Albrecht Schlosser
c57c3a1c6c Fix ignored files, add 'build' directory to ignored files.
The 'build' directory must never be used in the FLTK source.
It is reserved as the recommended build directory for CMake.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12104 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-11 21:18:42 +00:00
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