Commit Graph

7360 Commits

Author SHA1 Message Date
Manolo Gouy
4d55e204f8 Remove the USING_XCODE preprocessor variable that became useless
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11909 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-31 16:12:28 +00:00
Greg Ercolano
09aa05ef3f Bringing over fix [r11907] from 1.3 current to the porting branch.
Fixes STR# 3325 - fixes scheme oriented focus box drawing problems when Fl_Choice height is <20



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11908 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-30 19:16:50 +00:00
Greg Ercolano
560e2d06ba Bringing over fix [r11880] from 1.3 current to the porting branch.
Limit line numbering to New>Code editor.
(was affecting Properties->Callback and New>Code>Comment editors)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11906 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-30 06:00:57 +00:00
Manolo Gouy
0e404ab7d7 Fix slight mis-scaling when pasting Enhanced metafile from clipboard
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11904 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-28 15:37:45 +00:00
Manolo Gouy
87d28f5eab Use desktop scaling factor also when pasting an Enhanced Metafile
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11900 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-28 06:45:59 +00:00
Manolo Gouy
fd2da982b6 Fix Fl_Copy_Surface under Windows 10 when the desktop scaling factor value is > 100 %
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11899 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-27 15:54:51 +00:00
Manolo Gouy
f551d538f2 Add Doxygen comments for the Fl_RGB_Image::alloc_array and ::array public attributes.
Also, document what is the value of alloc_array after construction of an Fl_RGB_Image object.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-27 14:16:32 +00:00
Manolo Gouy
0e7ad720d1 Fix Fl_WinAPI_Window_Driver::border_width_title_bar_height() for displays where true DPI is not 96.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11895 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-27 06:59:54 +00:00
Manolo Gouy
5dbfe413ae Fix computation of Fl_Window::decorated_w() and decorated_h() when apps are resized through display setting.
Under Windows 10:
when the user sets the value of "Change the size of text, apps and other items" in display settings
to above 100 %, the computation of Fl_Window::decorated_w() and decorated_h() has to
take the scaling factor into account.
This factor is also necessary to draw correctly window title bars.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11893 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-25 12:42:50 +00:00
Manolo Gouy
a7ce881c7d Remove unused variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11892 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-24 08:57:21 +00:00
Manolo Gouy
4180cf5360 Add missing delete statements in ~Fl_XXX_Copy_Surface_Driver() and ~Fl_XXX_Image_Surface_Driver().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11891 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-24 08:53:29 +00:00
Albrecht Schlosser
f07570e92f Fix compiler warnings and simplify Fl_X11_Screen_Driver::init().
This function sets the screen dimensions and tries to use Xrandr,
Xinerama, and basic X11 functions (in this order) to get the screen
sizes and resolutions (dpi).

This commit simplifies conditional compilation and fixes "unused variable"
compiler warnings under certain conditions as mentioned by Greg in
fltk.general, thread "Can not change font size in Kubuntu 16.04" on
Mon, 15 Aug 2016 00:25:32 -0700.

Also merged in small improvements of branch-1.3-porting, basically "the
same commit" as svn r11889 in branch-1.3.

Todo: dpi resolutions acquired by using Xrandr are not per screen but use
dpi value of screen 0 for all screens. Check if this can be improved.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11890 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-23 16:57:39 +00:00
Manolo Gouy
616bcb6357 Step back from r11886 that is not correct.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11888 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-23 15:25:22 +00:00
Manolo Gouy
b823bb0d45 Change comment describing return type of Fl_WinAPI_Screen_Driver::read_win_rectangle()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11887 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-23 12:39:27 +00:00
Manolo Gouy
b7146df369 Make Fl_Gl_Window::make_current() set the value of the fl_window global variable under the X11 platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11886 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-23 11:35:42 +00:00
Manolo Gouy
12f086cb7e Remove special processing for Darwin+X11 that seems no longer necessary.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11885 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-23 11:25:52 +00:00
Manolo Gouy
0267781cec Change return type of Fl_Screen_Driver::read_win_rectangle() to Fl_RGB_Image*
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11884 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-23 09:38:46 +00:00
Manolo Gouy
9c8c062d6b Use the HAS_ATSU preprocessor variable once more
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11883 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-22 16:14:39 +00:00
Albrecht Schlosser
707d7f0dda Improve documentation, fix Fl_Window::icon(NULL).
This is now documented as legal to reset a window icon.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11882 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-20 17:09:28 +00:00
Greg Ercolano
4e7603f26e Bringing over fix [11878+11879] from 1.3 current to the porting branch.
Solves STR #3318: options for how to handle external editors on fluid quit
        



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11880 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-16 21:20:06 +00:00
Greg Ercolano
5f445ab306 Bringing over fix [r11875] from 1.3 current to the porting branch.
Solves STR #3319: enable line numbers in fluid: Edit -> Show Source Code.
  



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11877 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-16 20:23:51 +00:00
Manolo Gouy
f814211547 Add missing #include directive
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11874 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-16 18:24:09 +00:00
Manolo Gouy
3932b1af7c Remove uses of the '$(shell if test ...' syntax from Makefile that is not cross-platform
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11872 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-12 16:59:06 +00:00
Albrecht Schlosser
7659192447 Fix one compiler warning and one error on Windows 64-bit.
These warnings and errors were found using gcc 6.1 (64-bit) under Windows.

The error in examples/howto-add_fd-and-popen.cxx (-fpermissive) is due
to the wrong definition of Fl_FD_Handler under Windows 64-bit (FL_SOCKET!).

This should really be fixed in a better way in FLTK 1.4.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11871 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-11 12:41:17 +00:00
Albrecht Schlosser
e7b9e77ba5 Fix typos, separate local variables of image scaling algorithms.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-09 15:20:54 +00:00
Albrecht Schlosser
78d853891c [CMake] Fix Windows dll build with Visual Studio generator.
Now you can set OPTION_BUILD_SHARED_LIBS:BOOL=ON to build FLTK dll's with
Visual Studio. Tested and works (Visual Studio 2010 + 2015).

Note: Linux fixes included, tested and works (Ubuntu).

Todo: dll names and target directories may need some changes.
We really need to get rid of that "_SHARED" suffix in .so names.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-09 14:11:42 +00:00
Manolo Gouy
e5e7fa9b1e Fix CMake building under Apple platform that used to set HAVE_GL_GLU_H to 0
On the Mac OS platform, file glu.h is not in a directory called GL.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-05 17:14:55 +00:00
Albrecht Schlosser
fe0c247dbb Documentation fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11862 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-01 12:50:15 +00:00
Albrecht Schlosser
6b0e38942f More configure.in quoting fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11860 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-01 12:22:49 +00:00
Albrecht Schlosser
fa03b7c7b9 Fix quoting in configure.in.
There were two real errors (AC_MSG_ERROR, fixed in previous commit) and
lots of less important missing quotes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11858 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-01 08:33:05 +00:00
Greg Ercolano
6c0908b39f Bringing over fix [r11855] from 1.3 current to the porting branch.
Fixes problem with AC_MSG_ERROR() macro which was causing this error
when e.g. the X11 libs weren't found:

    configure: line 410: test: aborting.: integer expression expected
    configure: error: Configure could not find required X11 libraries

For info on correct use of AC_MSG_ERROR(), see:
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Printing-Messages.html



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11856 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-01 05:00:19 +00:00
Albrecht Schlosser
71ec2f2b5c Remove copyright markers from abi-version.* (STR #3161).
See STR comments #10 - #14.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11854 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-29 18:50:24 +00:00
Albrecht Schlosser
524fb8ae27 Fix more Windows 64-bit g++ compiler warnings.
Fixed warnings:

  42 cast to pointer from integer of different size [-Wint-to-pointer-cast]


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11852 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-29 10:54:22 +00:00
Albrecht Schlosser
17b9f6d6cb Fix compiler warnings (gcc 6.1).
Some of these warnings were benign (code formatting), but one of them
showed a potential bug (zero divide in test/fraciewer.cxx).

Fixed warnings:

 1 this 'while' clause does not guard... [-Wmisleading-indentation]
 1 this 'for' clause does not guard... [-Wmisleading-indentation]
 1 this 'else' clause does not guard... [-Wmisleading-indentation]



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11850 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-29 09:24:04 +00:00
Albrecht Schlosser
a633de6461 Doc changes: set fl_font before fl_measure() (STR #3243)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11848 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-24 08:55:02 +00:00
Manolo Gouy
54dcf145fe Fix Fl_X11_System_Driver::utf8locale() that did not work when no locale is set.
Also, minor simplification of Fl_WinAPI_System_Driver::utf8locale().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11846 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-23 04:48:40 +00:00
Greg Ercolano
67213cf0d8 Bringing over fix [r11844] from 1.3 current to the porting branch.
Fixes STR #3270; when an image is used as a link,
this mod synchronizes the link's hot spot with the image.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-23 04:32:10 +00:00
Greg Ercolano
7b30c4720e Bringing over fix [r11842] from 1.3 current to the porting branch.
Fixes to fl_choice() docs, added screenshots.




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11843 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-22 10:30:34 +00:00
Greg Ercolano
e92fa6914b Bringing over fix [r11840] from 1.3 current to the porting branch.
Solves STR#3294; added methods to let user set the userdeicon,
and removed the performance degrading automatic deicon creation.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11841 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-21 00:51:14 +00:00
Greg Ercolano
aa5ac8656d svn property mods..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11839 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 18:40:49 +00:00
Greg Ercolano
d1dd240bd4 Bringing over fix [r11835] from 1.3 current to the porting branch.
Improved fluid-org.png diagram.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11836 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 18:06:27 +00:00
Greg Ercolano
ef110d5949 Bringing over fix [r11833] from 1.3 current to the porting branch.
Added updated settings dialog screenshots to the fluid docs.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11834 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 17:08:29 +00:00
Greg Ercolano
509ed5962a Bringing over fix [r11188] from 1.3 current to the porting branch.
Some code cleanup of FNFC Win32: no functional changes.
 
     > Replace huge static WCHAR wpattern[] array with dynamic in win32 FNFC (ABI 1.3.4)
       (Should decrease the memory weight WIN32 lib)
 
     > Simplify current working directory management
 
     > Comment simplification, CMP adherence
 



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11831 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 02:25:15 +00:00
Greg Ercolano
6465c2c544 Bringing over fix [r11756] from 1.3 current to the porting branch.
Small doxygen doc fix for scrollbar_width().



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11830 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 01:07:10 +00:00
Greg Ercolano
508af6b48e Bringing over fix [r11757] from 1.3 current to the porting branch.
Doc mod to refer to fltk color chip table.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11829 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 01:05:58 +00:00
Greg Ercolano
ebba50752d Bringing over fix [r11758] from 1.3 current to the porting branch.
(Enumerations.H had already been updated, but the enumerations.dox had not)

Added references to the virtual colorcube.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11828 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 01:03:33 +00:00
Greg Ercolano
d2d5573bc5 Bringing over fix [r11759] from 1.3 current to the porting branch.
Fl_Text_Editor documentation mods for kf_xxx functions.
(Discussion on fltk.coredev May 29 - 30th 2016)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11827 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 00:55:06 +00:00
Greg Ercolano
1b238e52cd Bringing over fix [r11766] from 1.3 current to the porting branch.
Doc fix: fixes STR#3312.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11826 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 00:50:36 +00:00
Greg Ercolano
f375b6098f Bringing over fix [r11786] from 1.3 current to the porting branch.
Some small Fl_Sys_Menu_Bar related doc mods as per STR#3317.
WIP -- more to come; just checking in what I have for now..
 
 	1) rank -> index
 	2) Added docs for index \return values for some methods 
 	3) Some clarification in the internal docs about rank vs. index
 	4) Enabled Fl_Menu_Item's enum flags to be able to be links (added @file
 	   to Fl_Menu_Item.H) so references to e.g. "::FL_MENU_TOGGLE" will show
 	   up as links in doxygen docs.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11825 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-19 23:50:09 +00:00
Greg Ercolano
4f9345b40a Bringing over this fix [r11798] from 1.3 current to the porting branch.
Small doc improvements/elaborations.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11824 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-19 23:27:34 +00:00