Albrecht Schlosser
389760c1c6
Remove #include ".../config_lib.h" from remaining sources
...
... except src/Fl.cxx
Fl.cxx uses the FL_CFG_* macros to define the values of runtime
configuration options. This is now the only usage of config_lib.h.
Todo: we can probably implement these runtime config vars in another
way and finally remove config_lib.h.
2021-02-18 13:11:47 +01:00
Albrecht Schlosser
135b8b9c86
Update dependencies
2021-02-18 12:55:51 +01:00
Albrecht Schlosser
6236d4d466
Remove redundant definition of FL_CFG_GFX_OPENGL
2021-02-18 12:34:30 +01:00
ManoloFLTK
f333191312
Make clear we're calling a member function of class Fl_WinAPI_System_Driver.
2021-02-18 08:29:02 +01:00
Albrecht Schlosser
ba0b8affe3
Rewrite Pango checks for autoconf/configure
...
- disable "fallback mode" (don't use hardcoded flags and libs)
- use pkg-config for pango flags and libs but don't *require* it [1]
- enable CXXFLAGS and LDFLAGS usage for --enable-pango
[1] if pkg-config is not available (installed) you can still use
environment variables CFLAGS, CXXFLAGS, and LDFLAGS to enable Pango.
2021-02-17 11:28:31 +01:00
ManoloFLTK
b3f0b853a5
Documentation: remove Doxygen warnings of undeclared members.
2021-02-17 08:39:15 +01:00
ManoloFLTK
6dce15bfe3
Include config.h rather than config_lib.h in fl_open_uri.cxx
2021-02-17 08:39:15 +01:00
ManoloFLTK
9fdd675eab
Remove FL_CFG_SYS_POSIX and FL_CFG_SYS_WIN32 preprocessor vars from Fl_lock.cxx
2021-02-16 16:28:57 +01:00
ManoloFLTK
b709b2a2d3
Remove FL_CFG_WIN_COCOA preprocessor variable from Fl_Tree_Prefs.cxx
2021-02-16 15:50:15 +01:00
ManoloFLTK
32f7973073
Remove FL_CFG_SYS_POSIX preprocessor variable from Fl_get_key.cxx
2021-02-16 15:50:15 +01:00
ManoloFLTK
bf95eb1c09
Remove FL_CFG_SYS_POSIX preprocessor variable from fl_open_uri.cxx
2021-02-16 15:50:15 +01:00
ManoloFLTK
1298bf00f5
Remove FL_CFG_WIN_COCOA preprocessor variable from Fl_Sys_Menu_Bar.cxx
2021-02-16 15:50:15 +01:00
ManoloFLTK
35812f474b
Include <config.h> in Fl_Gl_Window.cxx
2021-02-16 15:50:15 +01:00
ManoloFLTK
98265d81a2
Remove FL_CFG_WIN_X11 preprocessor variable from Fl_own_colormap.cxx
2021-02-16 15:50:15 +01:00
Albrecht Schlosser
e182c8bcd5
Fix whitespace errors (no code changes)
...
- remove trailing whitespace
- convert tabs to spaces (configure.ac)
2021-02-16 14:21:13 +01:00
Albrecht Schlosser
a355c16971
Fix 'configure --enable-pango'
...
Also change 'pango' to 'Pango' consistently in warning and error
messages.
2021-02-16 13:53:35 +01:00
ManoloFLTK
1d44c57747
Fix lowercase error in filenames.
2021-02-16 12:34:30 +01:00
ManoloFLTK
1f9c80854c
Remove FL_CFG_WIN_X11 preprocessor variable from Fl_Native_File_Chooser_GTK.cxx
2021-02-16 12:08:56 +01:00
ManoloFLTK
d51481f95e
Remove FL_CFG_SYS_WIN32 preprocessor variable from fl_draw_pixmap.cxx
2021-02-16 11:58:15 +01:00
ManoloFLTK
5f3d8bc634
Include <config.h> when possible - continued.
2021-02-16 11:23:57 +01:00
ManoloFLTK
d93fc2bfa6
Use <config.h> when appropriate.
2021-02-16 11:08:59 +01:00
ManoloFLTK
06793c50fb
Create virtual Fl_RGB_Image* Fl_Gl_Window_Driver::capture_gl_rectangle()
2021-02-16 10:26:52 +01:00
ManoloFLTK
1adaa3def2
Create classes Fl_XXX_Gl_Window_Driver according to driver model.
2021-02-16 09:29:13 +01:00
Greg Ercolano
1f55bfe65c
Issue #109 contd: missed fractals.cxx fixes, also fix parens issue.
...
Missed mods to fractals.cxx.
Also fixed a parens issue Albrecht noticed on the Mac build.
2021-02-15 17:46:15 -08:00
Greg Ercolano
bef661607b
Solve all 'fractals' warnings in VS2017/Win32 for issue #109 .
2021-02-15 15:56:47 -08:00
ManoloFLTK
a723c0e889
PR #174 : Skip the call to MonitorFromRect when it is not needed.
2021-02-15 21:07:24 +01:00
Albrecht Schlosser
bbaec9bd88
Update CMake and make files, minor edits only
...
There are no functional changes to be expected, mostly formatting
and comments.
2021-02-15 19:45:20 +01:00
Albrecht Schlosser
edd5818355
fix autoconf and Makefile
...
do not delete config.sub and config.guess
todo: remove misc/config.{sub|guess} ?
2021-02-15 00:09:15 +01:00
Michael R Sweet
5378ef1c87
Update GHA build scripts for Linux, macOS, and Windows.
2021-02-14 15:14:39 -05:00
Michael R Sweet
f47465c736
Initial Github Action for CI builds
2021-02-14 15:05:17 -05:00
Michael R Sweet
76315a961f
Finish first pass of modernizing autoconf source file.
2021-02-13 21:22:03 -05:00
Michael R Sweet
44e90666d2
Save work.
2021-02-13 18:02:17 -05:00
Michael R Sweet
d2d5d4371e
Add autoconf cross-compilation support files.
2021-02-13 17:17:43 -05:00
Michael R Sweet
e3c3b9b39f
Save work on configure.ac modernization.
2021-02-13 17:17:43 -05:00
ManoloFLTK
9fad601401
Remove compilation warnings issued by Visual Studio 2019.
2021-02-13 21:13:04 +01:00
ManoloFLTK
5ade8fcb09
Fix for issue #185 "Shared Image reload() loses initial dimensions"
2021-02-12 07:32:49 +01:00
Albrecht Schlosser
c7dc112d2e
Fix missing export of fl_scroll() (issue #186 )
2021-02-12 00:45:25 +01:00
Albrecht Schlosser
67bd27a2be
Fix comments and documentation
2021-02-12 00:39:13 +01:00
Albrecht Schlosser
ff0543524b
Fix X11 copy-paste and drag-and-drop target selection ( #182 )
...
Select the "best" target rather than a random one out of a list of
suitable targets. The old target selection algorithm would sometimes
select the wrong target and hence retrieve unexpected data.
This could happen in both copy-paste and drag-and-drop operations.
Note: backported to 1.3.6 (git current) as well
(commit 7ce6d2cf5d
).
Closes #182 .
2021-02-11 15:51:37 +01:00
ManoloFLTK
ed5854d65a
Fix for issue #185 in Fl_Shared_Image::reload()
...
This fix updates Fl_Shared_Image::reload() to account for the data_w() and data_h()
image members.
2021-02-11 09:12:12 +01:00
Albrecht Schlosser
d53d6f3bce
Fix potential NULL pointer dereference
2021-02-10 14:11:04 +01:00
Albrecht Schlosser
086396ca54
Fix output and screen_num() in handle_events demo
...
Output was incorrect, partly to stdout and stderr, resp.
As Manolo noted in fltk.general, Fl_Window::screen_num() is the
correct API to retrieve the screen number of a window rather than
Fl::screen_num(...).
2021-02-10 14:10:13 +01:00
ManoloFLTK
818a2ab838
Windows scaling support: fix after WM_MOVE and in mouse_event()
...
The fix in mouse_event() makes sure the scale factor of the receiving window is correct
when distinct screens have distinct scale factor values.
The fix after WM_MOVE event makes sure a subwindow-containing window in a
multiple-screen desktop having distinct scale factor values is correctly rescaled.
2021-02-10 10:19:08 +01:00
Albrecht Schlosser
b4c464f71b
Add event handling test and demo program
...
This is intended to be used as
(a) an example of event handling and
(b) a test program to visualize many event related variables
This first version is compatible with FLTK 1.3.x but lacks the screen
scaling factor under 1.3.x (which is always assumed to be 100%).
Note: this does not reflect any system or monitor related settings.
2021-02-08 15:46:35 +01:00
ManoloFLTK
8eed8b9600
Scaling support under Windows: fix fullscreen window mode.
...
When scale was > 1, fullscreen window did not cover the task bar,
as seen with test/fullscreen.
2021-02-01 13:25:39 +01:00
Albrecht Schlosser
246291fe51
Make Fl_Gl_Window::gl_driver() private ( #184 )
...
The driver stuff should be private. The only usage I found was in
class _Fl_Gl_Overlay which is now a 'friend class'.
2021-01-29 14:11:19 +01:00
Albrecht Schlosser
a2a026ed74
Remove debug output from test/fullscreen demo
...
Output statements commented out and modified to go to stderr if used.
2021-01-29 13:56:09 +01:00
ManoloFLTK
871e7063a2
Windows: restore "checkers" app that was damaged after handling of issue #155 .
2021-01-25 18:58:05 +01:00
ManoloFLTK
7fdac3790a
Windows: fix scaling problem in Fl_Tile.
...
The problem was visible with test/tile for fractional scaling values when
moving the vertical division.
2021-01-25 08:01:42 +01:00
Albrecht Schlosser
d7af409f42
Remove "Figure x.y: " from html image captions
...
... as discussed in fltk.coredev for easier maintenance.
Also edit some minor issues.
2021-01-13 22:52:33 +01:00