Commit Graph

3853 Commits

Author SHA1 Message Date
Manolo Gouy
150c261a45 MacOS 10.13: fix problem with window made fullscreen by clicking on green window button.
With MacOS 10.13 "High Sierra", when a window is made fullscreen by clicking on the green window button,
 the window hides the system menubar, but it's not possible to show the menubar by moving the pointer
 to the very top of the window. This new way of starting apps fixes this problem.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-15 17:42:48 +00:00
Manolo Gouy
64112db0cb Better implementation of Fl_Window::wait_for_expose() for Mac OS 10.13 High Sierra.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12487 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-11 15:27:36 +00:00
Manolo Gouy
d9e36a352f Fix for STR#3397: Font size/type not working inside GL window with gl_font(), gl_draw()
Function load_xfont_for_xft2() tries to load an X font corresponding to a given xft font, to use it
with GL. Under Ubuntu, always the same font was loaded, whatever the family, style and size.
With this fix, style and size requests are honored under Ubuntu. Family request may not be honored.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12403 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-27 07:24:49 +00:00
Manolo Gouy
4703285d28 Strenghten Fl::paste(): the widget's handle method may change Fl::e_text.
The widget's handle method may change the value of Fl::e_text.
 This occurs for instance if this method calls fl_choice().
 So, memorize the value of Fl::e_text before, to delete the correct array after the call to the handle method.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12373 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-06 06:29:33 +00:00
Albrecht Schlosser
7b64a4656a Update dependencies (make depend).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12337 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 19:25:36 +00:00
Albrecht Schlosser
08533b52b5 Bump version numbers to 1.3.5, prepare for release.
There are still files that need changes, but with this commit the
majority of files is up-to-date.

Files left to be updated later:

 - ANNOUNCEMENT         partly done, needs RELEASE DATE !
 - CHANGES              up-to-date (?), but needs RELEASE DATE !
 - KNOWN_BUGS.html      needs more work (snapshot)
 - maybe more           (unknown)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 18:32:47 +00:00
Albrecht Schlosser
6052771126 Fix ignored buffer pre-allocation (requestedSize) in Fl_Text_Buffer.
See fltk.general "Fl_Text_Buffer constructor bug" on Dec 5, 2016.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 17:06:42 +00:00
Albrecht Schlosser
07a62cdeb6 Fix Fl_Browser background and text color parsing (STR #3376).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 16:58:44 +00:00
Albrecht Schlosser
5252bbe03b Fix Windows CreateDC/DeleteDC mismatch (STR #3373).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 16:50:45 +00:00
Albrecht Schlosser
14c6b050b5 Fix configure --enable-cairo --enable-cairoext.
Add #include <config.h>. See report in fltk.general:

https://groups.google.com/forum/#!topic/fltkgeneral/x80qQ6wt0s4



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 16:16:21 +00:00
Manolo Gouy
2bb8b48958 Simplify handling of the windowDidMove notification since MacOS 10.10
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 14:34:44 +00:00
Manolo Gouy
c2228d32dc Support of MacOS 10.13 to appear soon: fix handling of window moves in presence of subwindows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-14 20:03:18 +00:00
Manolo Gouy
ff1a8ca921 FLDropTarget::DragEnter() replace call to Fl::get_mouse(int&, int&) by call to GetCursorPos(POINT*)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12316 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-14 06:47:52 +00:00
Manolo Gouy
4a38820972 Fix for STR#3390 "Drop to FLTK widget fails when desktop is scaled" - better solution.
The bug is fixed here by calling Fl::get_mouse(int&, int&) to get the correct mouse coordinates.
This way, even if MS fixes the bug that DragEnter receives its pt argument expressed
using incorrect units, FLTK apps will keep supporting drag-n-drop.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12314 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-13 10:51:37 +00:00
Manolo Gouy
f62d1998be Fix for STR#3387 "Bug of timer implementation on macosx".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-12 09:11:23 +00:00
Manolo Gouy
a66de73ccb WIN32: Fix for STR#3390 "Drop to FLTK widget fails when desktop is scaled"
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12309 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-12 06:14:02 +00:00
Manolo Gouy
611aa48620 MacOS: fix crash when making fullscreen the scrolled scroll test program
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12089 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-09 20:19:10 +00:00
Manolo Gouy
b73e953b42 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, but they should not
 - reactivate the last tab ===> the subwindows are not where they should be

The new code does not show this error.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12084 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-06 18:37:54 +00:00
Albrecht Schlosser
af12372e42 Accept empty Fl_Pixmap in Fl_RGB_Image c'tor (STR #3348).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12073 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-02 11:47:36 +00:00
Manolo Gouy
58ce9d778a MacOS: avoid crash when closing a fullscreen window
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12071 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-01 21:18:21 +00:00
Manolo Gouy
8b93da8f20 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@12055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-27 15:43:09 +00:00
Manolo Gouy
0f0597eb58 "File Systems" menu item of Fl_File_Chooser: make sure "/" is listed as one of the mounted filesystems.
One FreeBSD user reported a case where "/" does not appear in /etc/fstab, and thus
did not appear when the "File Systems" menu item of Fl_File_Chooser is run.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12047 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-19 05:55:03 +00:00
Albrecht Schlosser
de80a36218 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@12028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-14 16:35:44 +00:00
Albrecht Schlosser
5c19bf07bf Documentation fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-14 14:33:14 +00:00
Manolo Gouy
842c45f938 Fl_Native_File_Chooser on MacOS: improve handling of case where no chooser title is set.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12012 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-05 07:36:04 +00:00
Manolo Gouy
6324e540fe Improve Fl_Native_File_Chooser open dialog under Mac OS 10.12 that had lost its titlebar message.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12010 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-04 14:56:38 +00:00
Manolo Gouy
6df5b37006 Fix for STR#3308 - MacOS-specific part
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12008 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-04 11:26:36 +00:00
Albrecht Schlosser
c8837ffaec Fl_Shared_Image documentation enhancements and clarifications.
Minor code changes (e.g. renaming of variables) included, but no functional
changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12002 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-01 22:35:37 +00:00
Greg Ercolano
7651217fa3 Applying my suggested patch to solve immediate issues with STR #3231.
Probably more needs to be done (see STR), but at least solves the
immediate issues.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12000 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-01 21:20:18 +00:00
Manolo Gouy
f658fc0aea Add necessary autorelease pool for function get_window_frame_sizes()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-27 20:08:23 +00:00
Manolo Gouy
8a1b394380 MacOS platform: fix building under OS 10.4 that may not have kCGBitmapByteOrder32Host #define'd
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-27 10:36:08 +00:00
Greg Ercolano
6930bfca17 Small doc clarification for omitted word, caught by Albrecht via private email.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11986 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-26 19:29:03 +00:00
Albrecht Schlosser
8a392f90de X11: More explicit warning when using rotated text w/o Xft.
The warning is issued to stderr only once (previously: every time rotated
text was used).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11977 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-25 11:07:06 +00:00
Albrecht Schlosser
c930e2c0c0 Fl_Tree documentation fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-24 22:47:28 +00:00
Albrecht Schlosser
6def7a3924 Fix copyright year.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11970 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-23 14:03:40 +00:00
Albrecht Schlosser
b7fc62a589 Fix potential crash when using keyboard nav. on Fl_Tabs (STR #3333).
Also: more consistent use of 'const int nc = children()'. Added 'const'
qualifier for clarity only. This does not change the behavior.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-23 14:01:12 +00:00
Manolo Gouy
9c429ac63c Remove the 'suppressed' variable from cocoaMouseHandler(), a useless residue from ancient code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11959 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-21 06:10:06 +00:00
Albrecht Schlosser
ad65146bf9 Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11955 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-20 13:19:25 +00:00
Manolo Gouy
0c457fb89d Remove possible warnings when compiled with -Wundef
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11943 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-13 11:51:24 +00:00
Manolo Gouy
6796d05425 Fix typo in macro __LP64__
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11939 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-12 16:22:59 +00:00
Greg Ercolano
3317b4df30 Code indent consistency + doxygen \code indent fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11923 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 19:28:21 +00:00
Greg Ercolano
1dc11af70f Fixes STR#3200 issue with filter() on Win32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11920 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 16:46:59 +00:00
Albrecht Schlosser
c0fb27cc2f Fix compiler warning (STR #3081).
Note to devs: this was already fixed in branch-1.3-porting.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11914 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-01 12:41:19 +00:00
Greg Ercolano
f2aabb5ef8 Fixes STR# 3325 - fixes scheme oriented focus box drawing problems when Fl_Choice height is <20
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11907 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-30 19:08:36 +00:00
Manolo Gouy
924f223fc4 Fix slight scaling error when pasting Enhanced metafile from clipboard.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-28 15:18:44 +00:00
Manolo Gouy
172c8c8984 Remove implicit conversion between Fl_Image* and Fl_RGB_Image*
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11902 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-28 09:51:10 +00:00
Manolo Gouy
3b5bf9691d Use desktop scaling factor also when pasting an Enhanced Metafile
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11901 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-28 06:54:20 +00:00
Manolo Gouy
4ca9bc95f8 Fix Fl_Copy_Surface on Windows 10 when the display scaling factor is > 100%
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-27 15:17:02 +00:00
Manolo Gouy
57e48378d7 Add Doxygen comments for the Fl_RGB_Image::alloc_array and ::array public attributes.
Also, document what is the value of alloc_array after construction of an Fl_RGB_Image object.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11896 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-27 11:10:54 +00:00
Manolo Gouy
da759d41df Fix Fl_Window::decorated_h() and decorated_w() when display scaling factor > 100% under Windows 10.
Fl_Paged_Device::draw_decorated_window() is also repaired.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11894 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-27 06:41:24 +00:00