Commit Graph

6714 Commits

Author SHA1 Message Date
Manolo Gouy
49a1d38cfd WIN32 + OpenGL: fix use of wglUseFontBitmapsW() to draw all of UTF under GL with gl_draw() - continued.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-01-07 07:47:27 +00:00
Manolo Gouy
3a90d5dc14 WIN32 + OpenGL: fix use of wglUseFontBitmapsW() to draw all of UTF under GL with gl_draw().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12623 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-01-07 07:41:46 +00:00
Albrecht Schlosser
aa216a46d4 CMake/Windows only: add missing #define WIN32 for all compilers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12613 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-28 23:22:43 +00:00
Manolo Gouy
a124051e7e Fix crash after calling Fl_Copy_Surface::draw_decorated_window() with MacOS 10.13
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12611 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-28 07:27:18 +00:00
Manolo Gouy
ed632e8cfd Top-level menus should not be inactivated. Their items can be.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12571 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-27 20:50:34 +00:00
Albrecht Schlosser
c249933075 Fix illegal memory access after free when closing fluid (STR #3427).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-18 18:12:18 +00:00
Albrecht Schlosser
2c01c3ece9 Fix crash when closing fluid with Fl_Table (STR #3427).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12564 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-11-18 17:40:26 +00:00
Manolo Gouy
e0aa84368d MacOS: improve handling of dropped files at launch time for MacOS 10.13
Because opening a file can call the event loop and thus access the list of dropped files,
it's necessary to remove the object from the list before opening the file.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-22 06:19:21 +00:00
Manolo Gouy
f3d5f20315 Mac OS 10.13 "High Sierra": restore possibility to run app from a command line and find it activated.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12515 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-18 15:23:41 +00:00
Manolo Gouy
714d970db1 MacOS: make sure all files dropped to the app at launch time are open when Fl_Window->wait_for_expose() is used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12513 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-18 13:57:18 +00:00
Manolo Gouy
db96b5e091 Mac OS: complete changes needed for 10.13 "High Sierra" regarding how FLTK applications start.
With MacOS 10.13 "High Sierra", it was necessary to change what happens at application start time.
The new procedure is:
fl_open_display() calls [NSApp run], and during this call:
      the main event loop is started;
      the app delegate receives an openFile: message for each file dropped on the app icon. Each
            such filename is memorised in an NSMutableArray called dropped_files_list;
      the app delegate receives applicationDidFinishLaunching and stops the main event loop
            (this seems to occur unpredictably after the first openFile: message or after all of them).
When the FLTK event loop begins, it checks whether dropped_files_list is empty. If it is not,
    the first element of this list is a filename which is opened and is removed from dropped_files_list.

This new setup allows to turn resizable windows fullscreen and back as expected under MacOS,
and to support launching apps while dropping file(s) on its icon.

For now, the new setup is used only when MacOS 10.13 is running.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12509 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-17 10:35:29 +00:00
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
Albrecht Schlosser
1af036f6ed Add public accessor Fl_Shared_Image::original().
This public, inline, and read-only accessor is intended for debugging
purposes but can be useful for user code as well.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12473 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-02 12:38:28 +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
d577f751b2 Update CHANGES.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 16:34:56 +00:00
Albrecht Schlosser
a47a009b29 Add script to update bundled config files, and update files.
The bundled scripts misc/config.guess and misc/config.sub should be
updated from time to time to get support for new platforms.

The new script 'misc/update_config_scripts' can be used to download
the latest versions of config.guess and config.sub.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12331 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 16:32:50 +00:00
Albrecht Schlosser
3a57a2ce1f Remove obsolete comments from test/ask.cxx.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 16:24:39 +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
a5955ccca5 Added support for MacOS 10.13 "High Sierra".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12324 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 05:46:01 +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
a36644efc2 Mention fixes for STR#3387 and 3390.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-12 09:17:45 +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
Albrecht Schlosser
c93ab39040 Fix Windows IDE solutions VisualC2008 and VisualC2010.
Add proper quoting to build properly if the FLTK source directory
  is located in a path that contains spaces.

Note: this is a source tar file update that is only necessary if you
build one of the above mentioned Visual Studio IDE solutions in a path
with spaces. Nothing else changed, no documentation updates.

See also important notes below.

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

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

Only very serious bug fixes will be available in FLTK 1.3 if FLTK 1.4
is not yet released or not (yet) stable.

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.

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

Note to Git users: FLTK's svn branch-1.3 has been the 'master' branch
in our Git repository, but this branch is finished since the release
of FLTK 1.3.4.

Only very serious bug fixes will be available in the new Git 'branch-1.3'
(this branch) if FLTK 1.4 is not yet released or not (yet) stable.

The new development branch is now branch-1.4 -- please checkout
branch-1.4 if you want to get the current FLTK 1.4 development branch.

The Git 'master' branch will stay as-is for some time, but in the
near future branch-1.4 will likely become the new 'master' branch.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12110 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-15 11:52:20 +00:00
Albrecht Schlosser
ece0185551 Fix quoting in IDE projects (VisualC2008 and VisualC2010).
Without correct quoting these IDE projects don't build if their
build folders are in a path with spaces. Other IDE project (VisualC6
and Xcode) are not concerned.

Unfortunately paths with spaces are kinda "usual" in Windows environments.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-14 17:27:23 +00:00
Albrecht Schlosser
a33c32b7bf Final commit to branch-1.3 *after* the release of FLTK 1.3.4.
See important notes below.

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

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

Only very serious bug fixes will be available in FLTK 1.3 if FLTK 1.4
is not yet released or not (yet) stable.

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.

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

Note to Git users: FLTK's svn branch-1.3 has been the 'master' branch
in our Git repository, but this branch is finished since the release
of FLTK 1.3.4.

Only very serious bug fixes will be available in FLTK 1.3 if FLTK 1.4
is not yet released or not (yet) stable.

The new development branch is now branch-1.4 -- please checkout
branch-1.4 if you want to get the current FLTK 1.4 development branch.

The Git 'master' branch will stay as-is for some time, but in the
near future branch-1.4 will likely become the new 'master' branch.

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


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12100 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-11 19:13:13 +00:00
Albrecht Schlosser
4d29356389 Update ANNOUNCEMENT for FLTK 1.3.4 final.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12096 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-11 15:47:12 +00:00
Greg Ercolano
9ea3f40961 Small grammatical changes/clarifications.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-10 15:29:23 +00:00
Albrecht Schlosser
ce1655e751 Fix (remove) executable file attributes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12093 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-10 00:50:18 +00:00
Albrecht Schlosser
487af0904b Update CHANGES for release (1.3.4), add KNOWN_BUGS.html.
KNOWN_BUGS.html is a snapshot of the current roadmap, i.e. the list of
current STR's and RFE's (feature requests).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12092 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-10 00:44:07 +00:00
Manolo Gouy
31a470df68 Reflect recent commit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-09 20:24:39 +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
2bf7d7af26 Reflect recent commit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12085 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-08 21:39:30 +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
7c248d5ec7 Fix test/native-filechooser help display artefact (STR #3349).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12080 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-06 10:40:39 +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
77d071427b Update CHANGES to reflect a recent commit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-01 21:32: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
Albrecht Schlosser
e59fc5c06e Minor CMake documentation clarification.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12069 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-01 20:43:38 +00:00
Albrecht Schlosser
4b46674e3c Documentation updates (IDE and CMake support) for release 1.3.4.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-01 14:57:00 +00:00