Manolo Gouy
f235678851
X11 under Ubuntu: read screen scaling information - continued
...
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-14 14:49:23 +00:00
Manolo Gouy
d23892ef52
X11 under Ubuntu: read screen scaling information from file $HOME/.config/monitors.xml
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13048 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-14 14:38:06 +00:00
Albrecht Schlosser
a0fcfa55d6
Fix (remove) C++11 extension in header file.
...
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-14 12:13:56 +00:00
Manolo Gouy
07f18a5190
MacOS: Fix rounding to nearest int for negative screen coordinates.
...
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-12 15:12:11 +00:00
Manolo Gouy
b0e0e0912c
MacOS ≥ 10.10: Fl_Window::fullscreen() and fullscreen_off() no longer call 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-12 12:46:09 +00:00
Manolo Gouy
b6f65b1c87
X11: simplify the use of member function Fl_X11_Screen_Driver::init_workarea().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13044 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-07 09:24:35 +00:00
Manolo Gouy
3669f9a8cc
MacOS: fix turning GL window to/from fullscreen state.
...
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-06 12:56:08 +00:00
Manolo Gouy
6e5c5d58e8
X11: fix Fl::w() and Fl::h() when the screen is rescaled.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13041 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-06 11:26:34 +00:00
Manolo Gouy
9a105ea686
Less code is enough to start the OpenGL 3 window fullscreen.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13040 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-03 17:16:07 +00:00
Manolo Gouy
ee3fbb849e
MacOS: fix creation of fullscreen GL window
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-03 15:47:48 +00:00
Manolo Gouy
821be0b0eb
Complete proper initialisation of the unique Fl_Cocoa_Screen_Driver object.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13038 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-03 09:12:47 +00:00
Albrecht Schlosser
0314c3c7ea
Revert test commit.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-02 21:00:18 +00:00
Albrecht Schlosser
86b0756e15
Update dependencies and fluid files, fix typos.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-30 10:41:16 +00:00
Manolo Gouy
b3b29632fb
Doc only: better doc of recently added events: 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-30 08:31:53 +00:00
Greg Ercolano
d1df5376f1
Added example of dynamically setting style buffer with text editor.
...
This example greatly simplifies the test/editor example to focus on
just the mechanics of dynamic style buffer manipulation via the
add_modify_callback().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-29 19:54:10 +00:00
Manolo Gouy
f50e9170dc
MacOS: slightly simplify [FLAppDelegate applicationDidChangeScreenParameters:]
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-29 16:42:41 +00:00
Manolo Gouy
d0739e8712
Slightly simpler implementation of 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-28 12:33:27 +00:00
Manolo Gouy
9289a63af2
Slightly simpler implementation of 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-28 12:12:20 +00:00
Manolo Gouy
8df4a051ef
Fix typo.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-28 07:42:52 +00:00
Matthias Melcher
40add7bc5f
MacOS X: Fixed Fluid CMake to use the included Info.plist instead of the CMake template. This will teach Fluid to accept .fl and .fld files again.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-27 11:06:51 +00:00
Matthias Melcher
982b21bd58
Fixed indenting and some wording in previous changes to Fluid
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-27 09:26:49 +00:00
Matthias Melcher
1156e8b305
Beautified some of the code. Removed size calculation error.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13027 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-25 15:38:25 +00:00
Matthias Melcher
011e5c498a
Added new functionality to Fluid: the 'binary data' type can now include text files as well as binary files into the source code. There is an additional check box in the dialog. Terminology is now "inlined data" instead of "binary data". Texts were modified to reflect the changes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-25 15:17:16 +00:00
Manolo Gouy
8de0a3c445
Remove the need to call fl_open_display() before using Fl::screen_scale(int, float).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13025 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-23 14:14:56 +00:00
Manolo Gouy
ec88e4a7c0
Show also how to create the OpenGL3 GLUT window fullscreen.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13024 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-21 09:26:01 +00:00
Manolo Gouy
153b175d90
Better doc for using OpenGL version 3.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-21 07:45:32 +00:00
Manolo Gouy
a3529e7c3f
Improved documentation related to access to OpenGL 3 under X11 platform.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13022 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-20 15:56:39 +00:00
Manolo Gouy
c0e04da27f
Fix creation of OpenGL3+ context under X11 platform
...
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-20 15:12:10 +00:00
Matthias Melcher
b26ace4b18
Added comment to Fl_Help_Dialog so users will know to link with fltk_images.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13020 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-20 12:31:59 +00:00
Albrecht Schlosser
0762f06886
A test commit. Please revert.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13019 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-19 15:23:41 +00:00
Albrecht Schlosser
02de79e6fa
Update FLTK 1.4.0 release year.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-14 15:53:39 +00:00
Albrecht Schlosser
6b3db108ac
Remove file with Windows crlf line endings from .gitattributes.
...
This is preliminary. These files will probably be added again after
the real migration to Git. Needs more investigation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13017 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-10 23:49:43 +00:00
Manolo Gouy
1b25d1d3a0
Support recent MS Office apps that use \r\n as end of line in pasteboard.
...
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-10 15:44:39 +00:00
Manolo Gouy
a9e2a78bb0
Improve the documentation of scaling factor-related operations.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-09 11:51:38 +00:00
Manolo Gouy
1dd21622f5
Fix typo in Doxygen doc
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13012 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-09 11:25:56 +00:00
Manolo Gouy
cd399d9898
Support for GUI scaling: add API to get/set the scaling factor value.
...
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-08 20:08:10 +00:00
Albrecht Schlosser
fb0f940c51
Update doxygen files to fix broken PDF generation.
...
Note: PDF generation "worked" with the previous configuration up to
doxygen 1.8.6 on my "old" Ubuntu 14.04 system but did no longer work
with doxygen 1.8.7 - 1.8.13 (the latter on Ubuntu 18.04).
Tests showed that 1.8.14 is seriously broken and git:master (aka 1.8.15,
but not yet released as of today) is not usable as well. Hopefully there
will be some doxygen fixes in the future.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13010 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-07 09:01:32 +00:00
Manolo Gouy
72cc8b9b23
Fix for STR #3483 : support for tiled images when the display is rescaled.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13009 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-07 07:24:36 +00:00
Greg Ercolano
205570d134
Fl_Tree documentation fixes for html/pdf, doxygen 1.8.5
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13008 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-06 18:04:46 +00:00
Albrecht Schlosser
339ba4c8b3
Fix crash when a program exits before it opens a window (STR #3484 ).
...
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-06 16:51:02 +00:00
Albrecht Schlosser
6d276aed27
Add missing FL_EXPORT statements.
...
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-06 15:17:39 +00:00
Manolo Gouy
a4194a40ab
Have the Doxygen doc of fl_draw_pixmap() show the default value of the last argument.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13005 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-04 16:42:32 +00:00
Manolo Gouy
61e53a8cd4
Fix regression seen with test/input under X11: the cursor becomes a grey 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-03 18:54:08 +00:00
Manolo Gouy
643bb3bbbb
Remove private member variable Fl_X11_Window_Driver::current_cursor_ that's no longer used.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-03 18:20:37 +00:00
Albrecht Schlosser
c37ea8b6ca
Fix line endings and other (svn) properties of fltk-config.in.
...
Remove executable property.
Set line ending to LF.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13001 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-03 09:18:07 +00:00
Manolo Gouy
7ea50c2018
Move Fl_Window::shape() from file Fl_Window_Driver.cxx to Fl_Window.cxx
...
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-08-02 20:42:28 +00:00
Albrecht Schlosser
82e26c661c
Update GitLab CI configuration (comments only).
...
Document where the HTML documentation will be installed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12999 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-07-31 10:05:54 +00:00
Albrecht Schlosser
d26b29a8f1
Update gitlab CI configuration (comments only).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12998 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-07-31 08:52:23 +00:00
Albrecht Schlosser
cdb7a68b8f
Add git attributes file.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12995 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-07-28 09:16:12 +00:00
Albrecht Schlosser
29981da5ca
Remove no longer needed file from .gitignore
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12994 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-07-28 09:11:28 +00:00