Commit Graph

6239 Commits

Author SHA1 Message Date
Lauri Kasanen
854c5ebd76 Correct HAVE_XRENDER preprocessor checks.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-16 18:16:27 +00:00
Lauri Kasanen
c91e48149b Add support for accelerated alpha blending under X11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-16 18:12:28 +00:00
Albrecht Schlosser
4798d70ded Update copyright (year) in generated fluid files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10627 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-16 18:03:16 +00:00
Albrecht Schlosser
463eb3a181 Update bundled libjpeg from jpeg-8c to jpeg-9a.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10626 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-16 16:57:13 +00:00
Albrecht Schlosser
992192dd02 Update bundled libpng from version 1.5.10 to 1.6.16.
libpng 1.6.16 is the current stable version, 1.6.17 is in development (rc..).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10625 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-16 16:47:32 +00:00
Albrecht Schlosser
ed339a8b35 Update bundled zlib from 1.2.5 to 1.2.8 (latest version as of Mar 12, 2015).
Source: http://zlib.net/
  Current release: zlib 1.2.8 April 28, 2013.

  Update note: not all files included in zlib are also included in FLTK's
  zlib version. However, there are only two files that are different from
  the original zlib versions:

  - zlib/CMakeLists.txt
  - zlib/Makefile


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-16 16:32:23 +00:00
Manolo Gouy
251a6e2fdb Allow compilation when HAVE_XRENDER is undefined or 0
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10623 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-16 15:17:49 +00:00
Lauri Kasanen
a6c4b29a18 Detect XRender support
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10622 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-16 11:07:00 +00:00
Albrecht Schlosser
fdab34b20e Fix 'boolean' issue with jpeg-9 library compatibility (STR #2920).
According to comments in STR #2920 and my own tests this is also
compatible with older jpeg libraries (at least jpeg-8).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10621 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-15 19:32:33 +00:00
Manolo Gouy
066f718674 Mentioned Fl_Shared_Image::scale() and BSD-style printing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10620 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-12 15:33:30 +00:00
Manolo Gouy
2b952dda54 Linux/unix: added support for BSD-style printing, that is, using lpq/lpr instead of lpstat/lp .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10619 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-12 15:24:15 +00:00
Manolo Gouy
1c3163f206 More detailed Doxygen doc of Fl_Shared_Image::scale() and Fl_Image::draw(X,Y,W,H,cx,cy).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10618 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-12 08:59:14 +00:00
Manolo Gouy
ba76bdce02 Implementation of Fl_Shared_Image::scale(width, height) for scaled image drawing - cont'd
don't call Fl_Graphics_Driver::draw_scaled(Fl_Image*,...) for an enlarged Fl_Bitmap or Fl_Pixmap

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10617 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-11 09:11:47 +00:00
Manolo Gouy
e69467bbc9 Implementation of Fl_Shared_Image::scale(width, height) for scaled image drawing - cont'd
Shorter implementation based on Fl_Graphics_Driver::draw_scaled(Fl_Image *,...).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-11 06:21:17 +00:00
Manolo Gouy
dbde470f8d Added Fl_Shared_Image::scale(width, height) to support scaled image drawing (STR #3185).
Useful for printing, PostScript or PDF output, or retina displays.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-10 21:06:22 +00:00
Greg Ercolano
cc2436954d Fixes STR#3207, issue with ^C not working when numlock or capslock is on.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-10 14:46:40 +00:00
Albrecht Schlosser
faad46f945 Add glutKeyboardUpFunc to list of not implemented glut functions (STR #2459).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10613 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-10 13:12:41 +00:00
Albrecht Schlosser
0f45a7adf5 [Version 1.3.4] Update version numbers - hopefully complete.
Note to devs: if I missed something, please mark follow-up commits with
[Version 1.3.4] so we can find the necessary commits for version updates.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10612 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-10 01:41:55 +00:00
Albrecht Schlosser
c96c4c35b0 Add 'fluid -u' command-line switch to upgrade fluid files in batch mode.
This option opens a fluid ('.fl') file and saves it overwriting the old
file with the current syntax and library version number.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10611 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-09 20:37:45 +00:00
Manolo Gouy
c9ff10d8f9 More detailed Doxygen doc of the Fl_Printer::start_job() function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10610 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-09 09:46:28 +00:00
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