summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-05-24Fix STR #2643: derefenced NULL pointer, if Xinerama is available, but inactive.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-23Fix STR #2637, part 2: accessing pixel values beyond array bounds. 64-bitAlbrecht Schlosser
converters to X image formats would access one more pixel per line for images with odd widths. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8731 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-23Removes a compilation warning because of use of X->xid = NULLManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8730 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-23src/screen_xywh.cxx: Fix STR #2637, part 1.Albrecht Schlosser
Fix array bounds error when Xinerama and Xlib disagree about number of screens. Fix setting vertical resolution (dpi) of different monitors. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8727 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-23Add FL_EXPORT to several classes to fix MS VC++ dll builds (STR #2632).Albrecht Schlosser
Remove FL_EXPORT from fl_clip_region() since this is an inline function on all platforms (and issued a warning when building fltkdll with MS VC++). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8726 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-23Fix STR #2640: Fl::w() and Fl::h() are documented to return the width and ↵Manolo Gouy
height of the main screen's work area (system-occupied space excluded); Fl::screen_xywh() functions instead compute the full width and height of a screen. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8724 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-23Fix STR #2627: if an X11 window is externally destroyed, FLTK now reacts ↵Manolo Gouy
coherently either deleting the corresponding FLTK window, or recreating the X11 window. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8723 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-23Rework the ifdefs for defining the appropriate value of WINVER in our builds.Ian MacArthur
In particular, ensure that if we redefine WINVER we undef it first (if it is already set) and also ensure that it is set before we include windows.h (by any hidden nested path!) in Fl.cxx. Previously, we were hitting issues with WINVER being redefined in some build cases, e.g. with --enable-cairo set on a win32 build. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8722 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-22ide/VisualC2008:Albrecht Schlosser
Fixed unittests(d).exe name (was: unittest(d).exe). Added missing custom build rule to tree.fl in Release mode. Fixed fluid dependency (removed fltkdll), since this made fluid.exe build with fltkdll.dll (strange, the same config works in VisualC2010). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8716 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-22Documentation updates.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-21Fix STR #2638. The X11 part is simplified as suggested by Bill.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-21Fix STR #2635 for Mac OS: allow fl_xid() even if window is not yet shown.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8708 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-21Fix potential crash in fl_xid() on Linux (STR #2635). This wouldAlbrecht Schlosser
crash if called when a window is not shown(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-20Added missing FL_EXPORT class declarations.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8699 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-19Allows to set the chooser's type at construction time without calling the ↵Manolo Gouy
type(int) function. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-15Mac OS: implemented the effect of the 2nd arg of Fl_Window::label(label, ↵Manolo Gouy
iconlabel) - continued. Now works also if called before the window is shown(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8665 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-15Mac OS: implemented the effect of the 2nd arg of Fl_Window::label(label, ↵Manolo Gouy
iconlabel) that sets the window name when it is iconized (or minimized). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8664 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-14Added new png header file pnglibconf.hAlbrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-13Fix for STR #2629: remove beep when typing cmd-<key> under Mac OS.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-13STR 2630: added bounds check for very narrow text editing widgets, wishing ↵Matthias Melcher
that Valgrind was available for OS X git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-12Fix for STR #2628: keep focus within an Fl_Tab after moving to another ↵Manolo Gouy
window and back. This had been partially fixed following STR #2552. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8658 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-12Mac OS: simplified by removing Fl_X::contains_GL_subwindow() function. Manolo Gouy
This operation is now performed within Fl_cocoa.mm git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8657 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-12Fix STR #2625: removed memory leak after reading erroneous PNG data.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8656 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-11On Mac OS, allow creation of a window in a minimized form.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-11On Mac OS, FL_HIDE is now sent when a window is minimized or the application ↵Manolo Gouy
is hidden. The context removal on Fl_Gl_Window::handle() destroyed the GL colors when the window is remapped. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-11First attempt to improve the html footer for the new doxygen layout.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-11Fixed "Index" link on documentation pages.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8651 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-11Updated doxygen stylesheet to new version (doxygen 1.7.4). This was reallyAlbrecht Schlosser
needed to fix the layout of the new style docs. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8650 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-11Fix a small documentation issue of a missing link.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8649 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-10Removed wrong links from package file.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8648 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-10Attempt to get fltk.*.in ready for 1.3.0 final version. Removed obsolete line.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8647 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-10Attempt to get fltk.*.in ready for 1.3.0 final version.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8646 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-10Fix STR #2597.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8645 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-10Hopefully this fixes the bug Albrecht found in using fl_measure on surrogate ↵Ian MacArthur
pairs whilst we were looking at STR #2622. In summary, if you measured the string *before* the selected font had been used to actually fl_draw() anything, the measurement returned was invalid, as the new font was not "locked in" to the gc. This change makes sure the selected font is set in the gc before making the measurement. In tests, this appears to work correctly now... More opinions welcomed! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8644 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-10Pushing this as a possible fix for STR #2622.Ian MacArthur
This might not be correct (though I think it is) but should be no worse than the current mess I made... Please test with as many different win32/64 compilers as possible and let me know! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-07Restoring correct keyboard handling under Mac OS X 10.5.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8642 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-07Fix STR #2619. An extra FL_MOVE event is sent on X11 after the menu item is ↵Manolo Gouy
selected by the keyboard. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-06Fix STR #2620. Obeys the tab distance value set by ↵Manolo Gouy
Fl_Text_Buffer::tab_distance(int). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8640 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-06Fix STR #2613. Allows a menu item to be invisible but with functional shortcutManolo Gouy
as authorized by the doc. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8639 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-06Modified tree-simple to demonstrate specifying front+back slashes in tree.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8635 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-04Fl_Tree mods for handling escaped item menu names.Greg Ercolano
Docs clarified. Also, tree-simple example's callback handler brought up to date. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8632 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-01Fix STR #2616. This is a very indirect consequence of the fix made for STR #2594Manolo Gouy
that allowed to set the focus to an Fl_Window. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8631 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-01Fixed drawing artifacts when scrolling round boxes (FL_ROUND_UP_BOX andAlbrecht Schlosser
FL_ROUND_DOWN_BOX) on Linux (STR #2615). This was done by (a) setting the line width in the box drawing function (was undefined, maybe 0) (b) taking care of zero and negative line width in X11 clipping functions. Both solutions would have solved the particular problem individually. Additionally made local helper function fl_arc_i() in src/fl_round_box.cxx static to avoid name clashes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-01Modify the utf8 test demo code to handle surrogate pairs.Ian MacArthur
It was hard coded to cover the range 0 to 0xFFFF, i.e. the Basic multilingual plane, even though the demo code allowed any start index, for any plane, to be entered on the CLI... As a result, attempts to view supplemental planes were always just folded back into the BMP. This change makes the code display the 64K Unicode points starting at the index given on the CLI, so that the supplemental planes *can* now be viewed and tested. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-29Corrected spurious FL_NUMLOCK setting.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-27Reorganized keyboard input-handling code.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8626 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-27Fix STR #2612: added missing #include <X11/keysym.h>Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8625 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-26Added function keys F13 - F16 and corrected backslash key.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-24Documentation updates, also fixing STR #2574, trying to make clearAlbrecht Schlosser
which events invisible and inactive widgets can get. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8623 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-24Fix STR #2596: Fluid generated improper callback member functions for Manolo Gouy
Fl_Menu_Item's in widget classes. Fixed with OP's patch. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8622 ea41ed52-d2ee-0310-a9c1-e6b18d33e121