Albrecht Schlosser
9d10d08ed0
[CMake] Add an option to use High-DPI support (Windows only).
...
This option can be used with CMake to configure the experimental
high-DPI support under Windows. The option may be removed once high-DPI
support under Windows is complete.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12338 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 20:15:02 +00:00
Albrecht Schlosser
7dda366286
Remove documentation of STR #3374 from CHANGES.
...
We don't need to document STR fixes of bugs that have been introduced
and fixed in FLTK 1.4.0 svn since this is not a regression since 1.3.x.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12328 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 15:34:12 +00:00
Manolo Gouy
cfe6e8e4b6
Simplify handling of the windowDidMove notification since MacOS 10.10
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 14:35:05 +00:00
Manolo Gouy
65b334777f
Added support for MacOS 10.13 "High Sierra".
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 05:54:25 +00:00
Albrecht Schlosser
bd1ba631fb
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.4@12323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-17 17:08:37 +00:00
Greg Ercolano
38f134c1ed
Some compilers probably need string.h for strcmp()..
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12322 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-17 01:20:00 +00:00
Greg Ercolano
0173358351
Added new example program 'nativefilechooser-simple.cxx'
...
(Simpler than the application example)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-17 01:13:28 +00:00
Manolo Gouy
e9741d01f0
X11 platform: Fix bug in test/overlay where overlay is clipped when using button shortcuts.
...
In branch 1.3, file src/Fl_Overlay_Window.cxx, function Fl_Overlay_Window::flush(),
part of line 49 was not reproduced in branch 1.4.
This fix reproduces in branch 1.4 the equivalent of the code in branch 1.3.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-16 17:42:28 +00:00
Manolo Gouy
a74cca3219
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.4@12318 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-14 19:58:28 +00:00
Manolo Gouy
872406c871
FLDropTarget::DragEnter() replace call to Fl_Screen_Driver::get_mouse(int&, int&) by call to GetCursorPos(POINT*)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12317 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-14 06:56:20 +00:00
Manolo Gouy
196d0a73b4
Fix for STR#3390 Drop to FLTK widget fails when desktop is scaled - new solution.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12315 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-13 11:42:45 +00:00
Albrecht Schlosser
c92fee897b
Fix Visual Studio shared library build (STR #3389 ).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12313 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-12 21:51:42 +00:00
Albrecht Schlosser
b7851fac8e
Add missing #include in fltk-versions example program.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12312 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-12 21:49:19 +00:00
Manolo Gouy
f84b9040f7
WIN32 platform: Fix drag-n-drop to FLTK widget when the desktop is scaled and FLTK_HIDPI_SUPPORT is not defined.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12308 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-11 17:19:25 +00:00
Manolo Gouy
b601e9558d
Add missing definition of the 'uchar' type in FL/x.H
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-11 13:22:56 +00:00
Manolo Gouy
9276dad42f
End of fix for STR#3387 "Bug of timer implementation on macosx"
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-11 12:03:05 +00:00
Matthias Melcher
a8f4fbc2ef
STR #2823.2/2: Improved Fl_Preferences "dirty" flag handling.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 21:00:17 +00:00
Matthias Melcher
7542e8cb16
STR #2823.1/2: avoiding setting "dirty" flag in a read operation.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 20:34:28 +00:00
Albrecht Schlosser
d9460d787b
Update dependencies (makedepend).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12303 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 19:42:12 +00:00
Albrecht Schlosser
0c210ae867
Introduce Fl_Group::bounds(), deprecate Fl_Group::sizes().
...
The new method Fl_Group::bounds() replaces Fl_Group::sizes() whose
internal array structure was not documented.
Fl_Group::bounds() uses the new and documented class Fl_Rect for its
internal structure.
src/Fl_Tile.cxx now uses bounds() instead of sizes().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 19:16:40 +00:00
Albrecht Schlosser
27d7736475
Fix some typos.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 18:28:10 +00:00
Matthias Melcher
bec74afb39
More logical data path name
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12300 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 16:23:22 +00:00
Matthias Melcher
1a7dc77851
STR #2034 : Fl_Preferences::getUserdataPath() is much more careful when creating a pathname based on the preferences filename. Among other things, remove a possible buffer overflow.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 16:19:26 +00:00
Manolo Gouy
9f69df923f
Define Fl_WinAPI_Screen_Driver::DWM_scaling_factor() only without FLTK_HIDPI_SUPPORT.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 15:06:51 +00:00
Manolo Gouy
7847c2d87a
WIN32 HiDPI support: fix copy and paste of image data when rescaling is applied.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12297 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 14:31:40 +00:00
Manolo Gouy
22d90078bd
Fix Fl_WinAPI_Window_Driver::border_width_title_bar_height() when built without FLTK_HIDPI_SUPPORT
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12296 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 14:16:35 +00:00
Manolo Gouy
23e3535257
WIN32 HiDPI support: fix scaling support for Fl_Copy_Surface.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12295 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 09:33:17 +00:00
Manolo Gouy
90f2bba62b
Fix Fl_GDI_Graphics_Driver::point_unscaled() so points are also enlarged when scaling increases.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 08:09:31 +00:00
Manolo Gouy
9d024ceb7e
Fix drag-n-drop for WIN32 platform when rescaling is active.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12293 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 08:04:45 +00:00
Albrecht Schlosser
e562ec02a6
Update several README files, remove obsolete information.
...
To be continued ...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-05 17:15:16 +00:00
Matthias Melcher
ae22b98442
Added CMake build instructions for MacOS and Xcode
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12291 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-05 15:02:43 +00:00
Albrecht Schlosser
2a8d11bb37
Fix compiler warning [-Wunused-variable].
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12290 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-05 13:53:31 +00:00
Albrecht Schlosser
90a6c3eb35
Remove obsolete comment, fix code formatting.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-05 13:41:16 +00:00
Manolo Gouy
ab208735fa
HiDPI support under WIN32: fix fullscreen when several monitors of distinct resolution.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-04 18:55:05 +00:00
Manolo Gouy
976959c98e
Slight improvement of Fl_WinAPI_Window_Driver::border_width_title_bar_height()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-04 17:15:23 +00:00
Manolo Gouy
99615372a6
Fix Fl_WinAPI_Gl_Window_Driver::pixels_per_unit() when on secondary monitor.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12286 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-03 17:38:20 +00:00
Manolo Gouy
8dccfc8838
HiDPI support under WIN32 platform: completed.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12285 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-03 17:31:57 +00:00
Manolo Gouy
ba10af9edb
WIN32: fix error when building without FLTK_HIDPI_SUPPORT.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12284 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-01 10:12:10 +00:00
Albrecht Schlosser
601e86fba5
CMake: fix potential compiler warning in test file.
...
clang reports: control reaches end of non-void function [-Wreturn-type]
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-29 18:27:07 +00:00
Albrecht Schlosser
90f6c8ee26
Update copyright year(s).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-29 18:12:57 +00:00
Albrecht Schlosser
3eb6b7ea58
CMake: replace improperly used variables with correct ones.
...
CMake variables FLTK_SOURCE_DIR and FLTK_BINARY_DIR are only defined
if the project name is exactly "FLTK" (all uppercase). These variables
are generated (set) by CMake as <PROJECT_NAME>_SOURCE_DIR etc.
The correct variables are CMAKE_SOURCE_DIR and CMAKE_BINARY_DIR,
respectively, which are always defined.
This commit enables future changes of the FLTK project name, e.g. to
"fltk" or "fltk-1.4.0" (a versioned project name), if we like...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12281 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-29 17:51:27 +00:00
Manolo Gouy
7dc496e97d
HiDPI support for WIN32 platform: begin to support screen-specific scale factor.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12280 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-29 09:44:35 +00:00
Albrecht Schlosser
c6c4e8d426
Remove unnecessary Fl_Widget_Tracker from Fl_Dial's handle().
...
handle_push() doesn't call a callback, hence Fl_Widget_Tracker is not
necessary.
Added FALLTHROUGH and NOTREACHED comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-29 01:13:05 +00:00
Albrecht Schlosser
14a6e9d103
Fix code formatting and typos.
...
Added some braces around the bodies of one-statement for loops for clarity.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12278 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-28 20:34:05 +00:00
Manolo Gouy
85724f00a0
Better implementation of Fl_WinAPI_Window_Driver::reuse_cursor() that will also work with custom cursors.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12277 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-28 17:07:09 +00:00
Manolo Gouy
582701ba07
HiDPI support: keep window's icons after rescaling
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-28 15:15:34 +00:00
Manolo Gouy
322b62a9f1
HiDPI support: keep window's cursor after rescaling.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12275 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-28 13:33:53 +00:00
Albrecht Schlosser
9041a3dc70
Fix fluid's widget_panel coordinates and widget order.
...
Added comments to hidden widgets and (also hidden) resizable box.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-27 13:01:12 +00:00
Manolo Gouy
7f15c3010c
WIN32 platform: more progress for full HiDPI support
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12273 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-27 12:17:29 +00:00
Manolo Gouy
7fbf318c53
Exact computation of scaled clipping region for X11 platform.
...
Each rectangular component of the clipping region is transformed exactly as by Fl_Xlib_Graphics_Driver::rectf_unscaled()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12272 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-27 07:39:58 +00:00