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
Manolo Gouy
4dce3a5ed5
Modified Fl_Quartz_Graphics_Driver::draw(Fl_RGB_Image *img,...) to accept worst case scenario
...
for memory usage: while printing, delete the printed image before completing the printed page.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-07 18:09:09 +00:00
Manolo Gouy
ff316fa357
Fixed reading of .pbm image files: the black & white pixels were reversed,
...
and P4-formatted files of width a multiple of 8 were handled incorrectly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-07 05:52:38 +00:00
Albrecht Schlosser
6cf13f1308
[CMAKE] Remove -DUSE_X11 from fltk-config --c[xx]flags.
...
This flag is not needed and not used by fltk-config created by configure.
It is only used internally, and for this reason it is in config.h.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10557 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-06 18:18:15 +00:00
Albrecht Schlosser
c87147578d
[CMake] Add missing build libraries (STR #3011 ).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10556 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-06 17:34:23 +00:00
Albrecht Schlosser
1e249a9804
Remove unused variable 'bindir' from fltk-config and fix CMake local usage.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-06 17:03:54 +00:00
Albrecht Schlosser
8e19bc8c6d
CMake: fix a few typos.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10554 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-06 16:01:14 +00:00
Ian MacArthur
e402a64457
Add some doxygen descriptions for the (previously undocumented) Fl_Multi_Label struct, and make some minor related adjustments to the docs for Fl_Label and Fl_Labeltype.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-04 13:12:43 +00:00
Albrecht Schlosser
84f87addfc
Add method Fl_Widget::is_label_copied() as discussed in fltk.general.
...
Thread was: "How get X,Y,W,H for current clip region ?" on Feb 2-3, 2015.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10552 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-03 12:19:01 +00:00
Manolo Gouy
f3cd33bb91
Fixed crash when resizing a not yet shown() Fl_Gl_Window.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-03 07:48:42 +00:00
Albrecht Schlosser
eebda637fa
Fix Linux/Unix potential program hang when dialog pops up while a menu is open (STR #3179 ).
...
This patch does not fix all issues though. The hang does not happen
anymore, but with some WM's the dialog can show up underneath the menu.
This needs more investigation, but this fixes the more important issue.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-02 17:55:22 +00:00
Manolo Gouy
62ed929ea5
Removed small memory leak.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-02 14:09:04 +00:00
Manolo Gouy
5017171db8
Replace gl_xxx() function names by new member functions of the Fl_X class to avoid
...
collisions with user-defined symbols.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-02 13:08:51 +00:00
Manolo Gouy
f8ee30ef74
Restores the Doxygen doc of the Fl_PostScript_Graphics_Driver class that had been hidden by r.9980 by mistake.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-02 09:46:32 +00:00
Albrecht Schlosser
a02e892b01
Improve test/boxtype demo program to help boxtype debugging.
...
(1) Set window title to reflect current scheme.
(2) Add class BoxGroup to show a red frame around each box
and/or a white box background.
Both features are disabled though. Edit the source file to enable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10546 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-31 15:43:53 +00:00
Manolo Gouy
8887600f5f
Improved Mac OS X Fl_Gl_Window resizing: the GL scene was drawn twice at each resize operation.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-31 15:08:31 +00:00
Albrecht Schlosser
22b4288c23
Fix potential buffer overflow (Windows: BEX64 error) and home dir (STR 3166).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-31 12:09:24 +00:00
Albrecht Schlosser
b7be893f38
Fix gleam boxtypes (STR #3183 ).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10543 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-31 01:22:09 +00:00
Albrecht Schlosser
a26f08bb61
Use Fl::is_scheme() where appropriate.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-29 16:56:12 +00:00
Albrecht Schlosser
01296095a6
Remove superfluous #include <string.h> - strcmp() is not used anymore.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10541 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-29 16:07:05 +00:00
Albrecht Schlosser
fdec4f65d6
Use Fl::is_scheme() in src/Fl_Tree_Prefs.cxx.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-29 15:56:56 +00:00
Albrecht Schlosser
c57ce6d909
Add missing gleam boxtype definitions from Dmitrij's oxy patch (STR #2675 ).
...
I don't know if there's a better source, but this does at least fill the gap.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10539 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-29 13:37:13 +00:00
Albrecht Schlosser
f5e9bf5087
Fix comments, trailing white space, and trailing commas in comments.
...
Note: there are no code changes in this commit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10538 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-29 13:14:59 +00:00
Manolo Gouy
51edb7c9dd
Back to previous statement that FLTK does not use RTTI.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10537 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-28 17:10:43 +00:00
Manolo Gouy
64ffd414d6
Stop using dynamic_cast when performing text drag (Mac OS only).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-28 17:05:29 +00:00
Manolo Gouy
b8b89178da
Clarified that RTTI is used on the Mac OS X platform to perform text dragging better.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10535 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-27 17:49:17 +00:00
Manolo Gouy
00f66de2cd
Restore compilability with Mac OS X SDK 10.4u
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-24 17:37:58 +00:00
Manolo Gouy
ed547c6c63
Simpler coding of the half-pixel offset necessary when clipping to a rectangle.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10533 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-24 12:54:21 +00:00
Manolo Gouy
6f022c4d95
It is necessary to call fl_cgrectmake_cocoa() when building the clipping rectangle for a sub-window,
...
as for any clipping rectangle.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10532 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-23 10:14:09 +00:00
Manolo Gouy
2d264fa8d5
A few comment changes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-22 17:45:09 +00:00
Manolo Gouy
1b00cc8e21
Make sure subwindows don't leak out of their parent windows.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-22 12:32:11 +00:00
Manolo Gouy
bbd7d9cb59
Have Fl_Paged_Device::print_window() print window title bars with rounded angles under Yosemite also.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-21 12:09:50 +00:00
Manolo Gouy
18f5d4e309
Removed erroneous statement from Doxygen doc of class Fl_Copy_Surface.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-20 09:05:10 +00:00
Manolo Gouy
eb33a418d5
Avoid potential crash if Fl::focus() returns NULL.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10527 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-19 14:41:32 +00:00