Commit Graph

6069 Commits

Author SHA1 Message Date
Albrecht Schlosser
1a69ba5ae9 Update configure and makeinclude.in to get rid of version numbers in Makefiles.
configure is used to set all needed version numbers in makeinclude.
makeinclude is included in Makefile's and the version numbers are used
to build the correct shared libs.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10609 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-07 18:37:56 +00:00
Albrecht Schlosser
78783e1fd8 Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10608 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-07 13:12:54 +00:00
Albrecht Schlosser
d77813a174 Fix window background and label drawing ("plastic" scheme only).
There was a regression since svn r10598 because the background image width
and height were set to 0. The label drawing code erroneously used this
for positioning the label text inside the window which could be seen for
instance in test/valuators. Now the label (text) is not drawn at all.

PS: this should be fixed with a better scheme setup w/o manipulating
the window's label, labeltype, and image in a later version.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10607 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-07 13:01:14 +00:00
Albrecht Schlosser
c96a330e26 Fix documentation errors and clarify label alignment docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10606 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-05 12:42:29 +00:00
Albrecht Schlosser
33206498fd Improve label demo test/label.cxx : better layout + new tooltips.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10605 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-05 12:40:32 +00:00
Manolo Gouy
edb4ec3e92 Changed functions supporting ASCII85 and RunLength encodings as private
members of the Fl_PostScript_Graphics_Driver class.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10604 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-02 15:09:45 +00:00
Albrecht Schlosser
1cfefc2e1a Improve and fix image drawing docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10603 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-02 12:39:42 +00:00
Albrecht Schlosser
f480ba58c0 Fix an error and improve documentation of Fl_Tiled_Image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10602 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-02 10:23:20 +00:00
Manolo Gouy
ad59d0cf83 PostScript output: various cosmetic changes to easy readability of output code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10601 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-02 09:34:56 +00:00
Manolo Gouy
372e707093 Added mention to compression techniques when drawing images to PostScript.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10600 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-02 08:01:35 +00:00
Manolo Gouy
fe96d64a2b PostScript output: : use ASCII85 encoding also for character strings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10599 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-02 00:08:08 +00:00
Albrecht Schlosser
4d1e372e09 Improve Fl_Tiled_Image drawing, scheme background setup, and documentation.
Fl::scheme("plastic") now correctly sets the background image width and
height to 0, which causes the background image to fill the whole window.

Fl_Tiled_Image drawing was partly broken. Offsets (cx, cy) were not used
correctly, and some other inconsistencies with arguments were possible.

Drawing has been optimized to draw only those tiles that are not clipped.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10598 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-01 20:16:56 +00:00
Manolo Gouy
966ca9faa3 PostScript output of images: use now RunLengthEncode followed by ASCII85Encode filters.
This is what Mac OS X does for its PostScript output, so there must be some good in that.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10597 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-01 12:11:52 +00:00
Manolo Gouy
00a7e2d576 Slightly improved implementation of the convert85() function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-28 07:41:38 +00:00
Manolo Gouy
1e0b4af8bc Improved PostScript output of images: they use now the ASCII85Encode filter
instead of the ASCIIHexEncode filter used before, resulting in quite smaller output files.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10595 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-27 16:43:40 +00:00
Albrecht Schlosser
c0a760d1c6 Rename variable 'inp' because of colliding definition in Cygwin.
Although this is probably not the application's fault and this
was found with gcc 4.5.3 using Windows 64-bit cross-compiling only.

windowfocus.cxx:25:18: error: 'Fl_Input* inp' redeclared as different kind of symbol
/usr/x86_64-w64-mingw32/sys-root/mingw/include/intrin.h:347:5: error: previous declaration of 'int inp(short unsigned int)'


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10594 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-27 14:10:29 +00:00
Albrecht Schlosser
c71a9e1c54 Fix compiler warning with gcc 4.8.3 under Windows/Cygwin (STR #3199).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10593 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-26 17:08:47 +00:00
Manolo Gouy
c0ed548005 1) More detailed Doxygen documentation for classes Fl_Printer, Fl_Surface_Device, Fl_Display_Device
and Fl_Graphics_Driver.
2) Support call of Fl_Printer::start_job(pagecount) with pagecount=0 when the number of pages is unavailable.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10592 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-26 15:38:54 +00:00
Albrecht Schlosser
3441590a1d Rename lib/README.lib to lib/README because '*.lib' is in ignored files list.
The extension '.lib' is used for Microsoft shared library stubs created in
directory lib/, so it is usefule to ignore *.lib (but not the README file).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10591 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-26 12:57:18 +00:00
Albrecht Schlosser
d2663161e2 [CMake] Improve handling of ldl and X11 libraries (STR #3196).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10590 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-24 14:50:37 +00:00
Manolo Gouy
a88c1f2974 WN32: Fl_Pixmap::draw(X,Y,W,H,cx,cy) did not print well when cx or cy was not null.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10589 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-23 08:54:57 +00:00
Albrecht Schlosser
46f8f4bcb4 Fix undefined reference XGetUtf8FontAndGlyph (STR #3191).
XGetUtf8FontAndGlyph was referenced in libfltk_gl if configured w/o xft
and defined in libfltk, but not exported (regression since 1.3.3).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-22 13:26:00 +00:00
Albrecht Schlosser
958d912ffc Fix potential keyboard hangup (STR #3192).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10587 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-20 22:30:04 +00:00
Manolo Gouy
93372a77c1 Mac OS: Fixed issue where the system object supporting a window created before the event loop started could not be
deallocated.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10586 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-18 06:20:57 +00:00
Albrecht Schlosser
fd7cfbb6f0 Update CHANGES file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10585 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-17 16:24:15 +00:00
Albrecht Schlosser
653396fc51 Restore window background image drawing (STR #3059).
This was a regression since FLTK 1.3.0, because the window's label was
not drawn anymore. However, the label drawing code is also responsible
for drawing a background image.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-17 16:06:05 +00:00
Albrecht Schlosser
b3f5f2913b Fix documentation (typo).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10583 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-17 15:42:25 +00:00
Albrecht Schlosser
3fe71d118c Add linker option -Wl,-no-undefined if supported (with configure check).
Experimental. Thanks to Greg for finding this option.

If this option is supported by the linker, it is used when linking shared
libraries like libfltk_gl.so. With this option linking of the shared library
fails instead of postponing failure to linking programs with this library,
if any undefined references exist in this library. See STR #3191.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10582 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-17 12:47:07 +00:00
Albrecht Schlosser
4d823c0d4a [CMake] Install bundled (jpeg, png, zlib) library headers if built (STR #3187).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-16 16:29:49 +00:00
Albrecht Schlosser
6390a0e09e [CMake] Improve installation, support DESTDIR, and more (STR #3149).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10580 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-16 14:30:27 +00:00
Manolo Gouy
a5fcc0a91f It is preferable to use a complete initializer for a class instance.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10579 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-15 09:07:00 +00:00
Manolo Gouy
0cc3a5247a Mac OS: fixed order of preference of data type when pasting graphical data.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10578 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-13 14:18:12 +00:00
Albrecht Schlosser
24dd515f30 [CMake] Fix creation of example directory when copying support files.
This was a regression introduced in svn r 10573 that affects new builds,
when the target directory for test files (bin/examples) doesn't exist yet.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10577 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-13 12:16:38 +00:00
Manolo Gouy
75b4a349c6 Mac OS: made function Fl_Graphics_Driver::clip_box() more accurate for retina displays
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10576 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-13 12:00:19 +00:00
Manolo Gouy
15b8e2eb87 Removed redundant code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10575 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-13 09:54:52 +00:00
Manolo Gouy
2633a887b7 Mac OS: more accurate way to determine the screen where the paste operation occurs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10574 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-13 07:41:59 +00:00
Albrecht Schlosser
5b801eae16 [CMake] Copy support files for demo programs to build directory (incomplete).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10573 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-11 15:15:46 +00:00
Manolo Gouy
eb82b2fb9a Fixed change made at r.10560 that breaks compilation with old SDKs
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10572 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-11 10:09:44 +00:00
Manolo Gouy
9cb0516301 Fixed error introduced at r.10568 that prevented non-Apple compilation.
Also, replaced __APPLE_QUARTZ__ by __APPLE__

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10571 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-11 08:59:26 +00:00
Albrecht Schlosser
1b38bbdd2e Fix window icon when set before Fl_Window::show() - Windows only.
The window icon was reset during show() if it was set before show(),
because Fl_X::make() didn't check the new RGB image icons. Hence the
previously set Fl_RGB_Image icon was ignored and replaced by the default
Windows application icon.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10570 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-11 00:30:53 +00:00
Greg Ercolano
b72f2783eb Added doxygen docs to clarify:
o fl_ask() is deprecated (since compiler warns about its use)
     o fl_choice() includes example code for various usage forms



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10569 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-10 18:17:37 +00:00
Manolo Gouy
db8a39ae45 Mac OS: more parsimonious memory usage when drawing Fl_RGB_Image. The image data are no longer duplicated when printing an image with
alloc_array = 1. Duplication remains when printing with alloc_array = 0.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10568 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-10 14:33:51 +00:00
Albrecht Schlosser
998a6be711 Fix typos in demo file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10567 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-09 19:15:09 +00:00
Albrecht Schlosser
3318fe3da4 Comments: doxygen docs and comments to emphasize platform dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-09 18:21:34 +00:00
Albrecht Schlosser
965be94165 Make demo programs display the correct Fl::scheme() in all cases.
Demo programs using Fl::args() and fl_get_system_colors() instead of
Fl_Window::show(argc,argv) didn't correctly initialize the Fl::scheme()
if the environment variable FLTK_SCHEME was set.

Calling Fl::scheme(Fl::scheme()) fixes this, because (currently) only
Fl::scheme(NULL) reads the environment variable FLTK_SCHEME.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10565 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-09 18:04:31 +00:00
Manolo Gouy
522fc17d31 Mac OS: correct window redraws after a window was created in iconized form.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10564 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-09 12:56:06 +00:00
Lauri Kasanen
d88bf15117 CHANGES: Fix the indentation in two 1.3.4 items
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-09 09:27:52 +00:00
Manolo Gouy
ec1d3ce3d9 Allow compilation with -std=c++11
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-08 19:46:36 +00:00
Manolo Gouy
5057528963 Fix for STR#3131 : .xbm images were not previewed
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10561 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-08 19:30:52 +00:00
Manolo Gouy
1dd0cdcee9 Allow compilation with -std=c++11 on Mac OS X
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-08 06:48:19 +00:00