summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-09-16MacOS: fix regression in OS 10.13 where an unbundled app had its system menu ↵Manolo Gouy
bar unresponsive. The regression was detected by "FLTK 1.4 on macOS: Trouble compiling my Application with Makefile" in fltk.general. The fix is to have unbundled apps initialize under MacOS 10.13 as under earlier OS, thus the new initialization procedure introduced for 10.13 is for bundled apps only. Tested OK on 10.13.6 and 10.14 public beta 10. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-14X11 under Ubuntu: read screen scaling information - continuedManolo Gouy
the first scaling value set at 2 is retained. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13049 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-14X11 under Ubuntu: read screen scaling information from file ↵Manolo Gouy
$HOME/.config/monitors.xml git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13048 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-14Fix (remove) C++11 extension in header file.Albrecht Schlosser
Found with clang [-Wc++11-extensions] (example): Building CXX object src/CMakeFiles/fltk.dir/Fl_x.cxx.o In file included from ../../src/Fl_x.cxx:40: ../../src/drivers/X11/Fl_X11_Screen_Driver.H:36:10: warning: unelaborated friend declaration is a C++11 extension; specify 'class' to befriend 'Fl_Screen_Driver' [-Wc++11-extensions] friend Fl_Screen_Driver; ^ class 1 warning generated. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13047 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-12MacOS: Fix rounding to nearest int for negative screen coordinates.Manolo Gouy
The previous method int(x + 0.5) is incorrect when x < 0 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13046 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-12MacOS ≥ 10.10: Fl_Window::fullscreen() and fullscreen_off() no longer call ↵Manolo Gouy
Fl_Window::hide() + Fl_Window::show() The new procedure essentially resizes the window, as done on the X11+EWMH and Windows platforms. This improves in particular the possibility to turn an Fl_Gl_Window fullscreen on and off. MacOS ≥ 10.10 is required because the procedure isn't stable (random crashes during fast switches) with 10.9. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13045 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-07X11: simplify the use of member function Fl_X11_Screen_Driver::init_workarea().Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13044 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-06MacOS: fix turning GL window to/from fullscreen state.Manolo Gouy
This fix completes that at r.13039. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13042 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-06X11: fix Fl::w() and Fl::h() when the screen is rescaled.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13041 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-03MacOS: fix creation of fullscreen GL windowManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-03Complete proper initialisation of the unique Fl_Cocoa_Screen_Driver object.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13038 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-30Update dependencies and fluid files, fix typos.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-30Doc only: better doc of recently added events: ↵Manolo Gouy
FL_SCREEN_CONFIGURATION_CHANGED, FL_FULLSCREEN,... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-29MacOS: slightly simplify [FLAppDelegate applicationDidChangeScreenParameters:]Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-28Slightly simpler implementation of ↵Manolo Gouy
Fl_Cocoa_Gl_Window_Driver::alpha_mask_for_string() - continued. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13032 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-28Slightly simpler implementation of ↵Manolo Gouy
Fl_Cocoa_Gl_Window_Driver::alpha_mask_for_string(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-23Remove the need to call fl_open_display() before using Fl::screen_scale(int, ↵Manolo Gouy
float). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13025 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-20Fix creation of OpenGL3+ context under X11 platformManolo Gouy
The procedure given in https://www.khronos.org/opengl/wiki/Tutorial:_OpenGL_3.0_Context_Creation_(GLX) is now followed. This gives access to contexts for the highest OpenGL version supported by the hardware when flag FL_OPENGL3 is used in the call to Fl_Gl_Window::mode(int). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13021 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-20Added comment to Fl_Help_Dialog so users will know to link with fltk_images.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13020 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-10Support recent MS Office apps that use \r\n as end of line in pasteboard.Manolo Gouy
FLTK now transforms that into \n as is expected under MacOS. Older MS Office apps used \r as old MacOS software. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13014 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-09Fix typo in Doxygen docManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13012 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-08Support for GUI scaling: add API to get/set the scaling factor value.Manolo Gouy
Also, define an FLTK event triggered when the scaling is changed and an option to disable the transient window showing the new scaling factor. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-07Fix for STR #3483: support for tiled images when the display is rescaled.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13009 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-06Fl_Tree documentation fixes for html/pdf, doxygen 1.8.5Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13008 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-06Fix crash when a program exits before it opens a window (STR #3484).Albrecht Schlosser
This crash and the fix are Windows specific. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13007 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-06Add missing FL_EXPORT statements.Albrecht Schlosser
This fixes a regression causing 'fluid-shared' build to fail (only if configured with --enable-shared, obviously). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13006 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-04Have the Doxygen doc of fl_draw_pixmap() show the default value of the last ↵Manolo Gouy
argument. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13005 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-03Fix regression seen with test/input under X11: the cursor becomes a grey ↵Manolo Gouy
square instead of FL_CURSOR_NONE git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13004 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-03Remove private member variable Fl_X11_Window_Driver::current_cursor_ that's ↵Manolo Gouy
no longer used. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-02Move Fl_Window::shape() from file Fl_Window_Driver.cxx to Fl_Window.cxxManolo Gouy
Consequently, the Doxygen documentation of Fl_Window::shape() will reappear. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13000 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-07-20Added fallthru indication in Fl_Button::handle()Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12992 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-07-02Try dummy commitManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12990 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-30Avoid giving same name (s) to 2 variables.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12988 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-27Update dependencies.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12987 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-27Remove a few useless 'friend' statements.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26Moving headers Fl_XXX_Driver.H from FL/ to src/ --- continuedManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12979 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26Move Fl_Gl_Window_Driver.H from FL/ to src/ --- continuedManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12978 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26Move Fl_Gl_Window_Driver.H from FL/ to src/Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12977 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26Move Fl_System_Driver.H from FL/ to src/Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12976 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26Move Fl_Screen_Driver.H from FL/ to src/Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26Move Fl_Window_Driver.H from FL/ to src/Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12974 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26Fix dependencies.Albrecht Schlosser
This dependency issue affects only the autotools (configure/make) build and shows that (IMHO) CMake is superior, at least for the way FLTK's build is configured currently. Todo: get rid of pre-configured makedepend files and hand-edited dependencies in Makefile's. The latter is *really* important in our new "driver model" build environment because there is not only one possible dependency whatever build options we select... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12973 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-26Move Fl_Sys_Menu_Bar_Driver.H from FL/ to src/Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12972 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-25Give private member variable _panel of class ↵Manolo Gouy
Fl_Quartz_Native_File_Chooser_Driver its true type, NSSavePanel*. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12971 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-23Doxygen only: fixed all block comments starting with an asterisk to ↵Matthias Melcher
space-only, fixed doxygen keywords prepended with @ to use a backward slash instead. No code was changed. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12970 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-23Removed macro FL_PORTING, as it has been more confusing than helpful.Matthias Melcher
The original intention of FL_PORTING was to mark all places in the source code where changes are required to port FLTK to a new platform. Thanks to the driver system, this approach has become somewhat misleading, so I removed all references. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-23Doxygen: created Group to document drivers, disabled by defaultMatthias Melcher
Uncomment `ENABLED_SECTIONS += DriverDev` in documentation/Doxyfile.in to enable driver documentation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12968 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-23Android: Android Developer Documentation would work but needs some changes ↵Matthias Melcher
in Doxyfile: - if develoer doc is wantedn, add 'ENABLED_SECTIONS = AndroidDev' - currently, Doxyfile enables everything related to drivers, so remove 'EXCLUDE = /Users/matt/dev/fltk-1.4.svn/src/driversxx/' With this, we get a sparsely filled module named 'Android Developer Documentation' and a lot of other driver related classes, which could also be encapsulated in doxygen '@if DriverDev'. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12967 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-23Android: added a few more Doxygen commentsMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12966 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-23Android: fixed fl_beep to plat different sound for differen beep types, ↵Matthias Melcher
testing Doxygen to generate driver developer documentation git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12965 ea41ed52-d2ee-0310-a9c1-e6b18d33e121