Commit Graph

7273 Commits

Author SHA1 Message Date
Manolo Gouy
e1f1b3898f Make Fl_Native_File_Chooser_FLTK.cxx compilable with FL_PORTING on.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11931 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-11 08:09:00 +00:00
Manolo Gouy
35a5148ee8 Put the code that defines the layout of struct _XRegion in FL/x.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-11 07:12:11 +00:00
Manolo Gouy
c5960df5fb Rewrite fl_open_callback() under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11929 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-09 15:56:33 +00:00
Manolo Gouy
86e48ce2ca configure build and Mac platform: make the colbrowser and help demo find their data file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11928 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-07 16:05:55 +00:00
Greg Ercolano
5871340263 Bringing over fix [r11923] from 1.3 current to the porting branch.
(Slightly different from 1.3 current patch, as files were split)

Code indent consistency + doxygen \code indent fixes.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11926 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 19:45:52 +00:00
Greg Ercolano
832e117f81 Bringing over fix [r11924] from 1.3 current to the porting branch.
Help text typo



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11925 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 19:31:13 +00:00
Greg Ercolano
108e6d7b0d Bringing over fix [r11920] from 1.3 current to the porting branch.
Fixes STR#3200 issue with filter() on Win32.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11922 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 16:56:54 +00:00
Greg Ercolano
f20152e5f2 Bringing over fix [r11919] from 1.3 current to the porting branch.
Added "Filter" field to test filter strings.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11921 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 16:56:10 +00:00
Manolo Gouy
36717ec845 Output also a bundled version of demo, as done for all other test apps under Mac OS platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11915 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-01 19:41:26 +00:00
Albrecht Schlosser
9fd31ed94e Fix buffer overflow in CR/LF conversion.
An already present CR/LF combination causes us to jump two characters,
but we failed to update the length counter when doing this.

This also makes sure we handle the corner case of a CR as the last
character.

Note: porting Pierre Ossman's commit (svn r11873) to branch-1.3-porting.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11913 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-01 10:35:21 +00:00
Manolo Gouy
89954986bb Remove another instance of the USING_XCODE preprocessor variable
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11912 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-31 17:01:27 +00:00
Manolo Gouy
e5486b24d1 Fix Mac OS launching of the browser test program.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11911 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-31 16:59:22 +00:00
Manolo Gouy
b1e25e4838 Remove one instance of the USING_XCODE preprocessor variable that is not necessary.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-31 16:14:39 +00:00
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