Commit Graph

8068 Commits

Author SHA1 Message Date
Manolo Gouy
bd4679f8d4 Fix fl_overlay_rect() under X11 and Windows when GUI is scaled.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12891 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-03 08:37:58 +00:00
Manolo Gouy
5da16bbd36 Simplify Fl_Widget_Surface::print_window_part() using the new Fl_Image::scale() member function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12890 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-02 10:39:34 +00:00
Manolo Gouy
b73ff860cc Make virtual void Fl_Surface_Device::end_current_() have no argument because none is used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12889 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-01 17:09:15 +00:00
Albrecht Schlosser
e70733b46f fluid: update copyright year.
This is particularly useful for fluid/about_panel.{fl,cxx,h}.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12888 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-01 11:08:38 +00:00
Albrecht Schlosser
2e9ba0a10e Update fluid (.fl) files.
src/Fl_Help_Dialog.fl: Add one missing declaration.

Other files: update (fluid -u) and update source (fluid -c).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12887 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-01 10:58:16 +00:00
Albrecht Schlosser
da68d85935 Add missing function fl_define_FL_ICON_LABEL() (STR #3468).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12886 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-05-01 09:37:03 +00:00
Manolo Gouy
599909135b Extend documentation of fl_begin_offscreen()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12885 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-30 09:25:52 +00:00
Albrecht Schlosser
4ad52ebaf7 Fix indentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12884 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-30 08:36:52 +00:00
Manolo Gouy
3d70c8c90f Fl_WinAPI_System_Driver::paste() : fix handling of clipboard containing top-down DIB image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12883 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-29 19:04:24 +00:00
Manolo Gouy
41b0245163 Fl_WinAPI_System_Driver::paste() : fix indentation only.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12882 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-29 17:28:57 +00:00
Manolo Gouy
6cdfd92247 Pasting image from clipboard: partial support of top-down DIB image (still needs completion)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12881 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-29 17:25:33 +00:00
Manolo Gouy
09f15fcac0 Slightly simplify examples/clipboard.cxx using Fl_Image::scale().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12880 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-29 16:29:13 +00:00
Manolo Gouy
7dba27a404 Fix Fl_WinAPI_System_Driver::paste() when clipboard contains GIF image
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12878 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-29 11:02:34 +00:00
Manolo Gouy
ba4559701f Fix Fl_WinAPI_System_Driver::paste() when the clipboard contains an image as a DIB and for GUI scale support.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12877 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-29 07:35:06 +00:00
Manolo Gouy
929efec855 Expand the doc of class Fl_Graphics_Driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12876 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-27 16:50:27 +00:00
Manolo Gouy
cd3d1f9dd5 Documentation: complete doc of Fl_Image_Surface::offscreen()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12875 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-26 12:11:26 +00:00
Manolo Gouy
9c389d34f9 Simplify API for Fl_Image_Surface::Fl_Image_Surface(int w, int h, int high_res, Fl_Offscreen off) with non-null offscreen.
The caller no longer needs to call Fl_Image_Surface::get_offscreen_before_delete() before object deletion,
because the object destructor knows the offscreen has not been created by the Fl_Image_Surface constructor.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12874 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-26 12:00:49 +00:00
Manolo Gouy
dd93cbd888 Fix Fl_WinAPI_System_Driver::paste() when clipboard contains an image and the GUI is scaled.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12873 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-26 11:51:28 +00:00
Manolo Gouy
069ab1b54f Fix Fl_GDI_Graphics_Driver::copy_offscreen() when the destination surface is an Fl_Copy_Surface object.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12872 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-26 09:05:20 +00:00
Manolo Gouy
3ec2f96877 class Fl_Xlib_Image_Surface_Driver : Remove unused member variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12871 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-25 16:03:27 +00:00
Manolo Gouy
527df2dc7f Have Fl_WinAPI_Window_Driver::capture_titlebar_and_borders() restore the window's device context before return
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12870 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-25 15:52:53 +00:00
Manolo Gouy
e59a06f753 Windows: fix fl_copy_offscreen() when input offscreen is scaled and output surface is printer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-25 11:19:44 +00:00
Manolo Gouy
c82fca51fa Windows: avoid changing the current Fl_Surface_Device when drawing an Fl_Double_Window.
This change was previously attempted at r.12792 but the test/offscreen demo did not run well with it.
This commit fixes the problem: the global fl_window should not be changed when drawing to
an Fl_Double_Window.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12868 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-24 10:45:30 +00:00
Manolo Gouy
ece56437a6 Undo change at r12792 (24 march 2018) because test/offscreen does not work with it.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-23 16:04:09 +00:00
Manolo Gouy
50c3568aff Complete Fl_Android_Graphics_Driver::cache() functions that should assign the image's cache_w_ and cache_h_ member variables.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12866 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-21 06:22:27 +00:00
Manolo Gouy
de4026aeca Fix Fl_GDI_Graphics_Driver::cache(Fl_Pixmap *) where 2 distinct Fl_GDI_Graphics_Driver objects should be used in the right way.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12865 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-20 12:37:08 +00:00
Manolo Gouy
7e234e3abc Remove debugging statement
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12863 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-20 09:04:24 +00:00
Manolo Gouy
de762fca2b Fix direct use of fl_draw_pixmap() whithout Fl_Pixmap object.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12862 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-20 08:46:49 +00:00
Manolo Gouy
bd9a57be29 Fix background color when drawing pixmap data both directly or as an Fl_Pixmap object.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12860 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-19 13:51:17 +00:00
Manolo Gouy
374ea9e9eb Fix handling of bg argument of fl_draw_pixmap(char**, int , int , Fl_Color bg) during direct drawing of pixmap image data.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12859 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-19 13:14:37 +00:00
Manolo Gouy
54b697cd49 Reorganise access to the value of the GUI scaling factor with public getter and protected, virtual setter member functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12858 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-19 10:39:46 +00:00
Manolo Gouy
d375918a5e Documentation: place Doxygen doc next to function implementation
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12857 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-19 08:43:19 +00:00
Manolo Gouy
eb3664edf1 Documentation: add doc for Fl_Graphics_Driver::cache_size()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12856 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-19 08:29:33 +00:00
Manolo Gouy
0196998ea6 Documentation: simplify example code for Fl_Image::scale()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12855 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-19 07:46:44 +00:00
Albrecht Schlosser
5bba4776ae Fix documentation formatting.
Move image out of 'note'.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12854 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-19 07:20:01 +00:00
Greg Ercolano
8c32c708a9 Clarified the fl_choice ordering in first example with an image and arrows,
as it's not clear in the text how the code order is reversed on-screen.

Also, the whole 'three musketeers' thing with the case values not matching
the numeric button names has always been confusing:

     case 0: .. // One
     case 1: .. // Two (default)
     case 2: .. // Three

Changed that so it's a Zero/One/Two example instead.

     case 0: .. // "Zero"
     case 1: .. // "One" (default)
     case 2: .. // "Two"



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12853 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-18 18:28:46 +00:00
Manolo Gouy
71d23d5574 Add comments: "Implementation note about how Fl_Pixmap objects get printed under Windows"
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12852 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-18 15:36:45 +00:00
Manolo Gouy
15e3f4b2d2 Simplify the implementation of printing of Fl_Pixmap images under Windows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-18 15:03:51 +00:00
Manolo Gouy
231e0edff6 Fix crash in test/device after scale-GUI + Fl_Printer + Fl_Image_Surface
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12850 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-18 14:41:54 +00:00
Albrecht Schlosser
c79f82edd1 Fix Fl_Text_Editor overstrike mode (STR #3463).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-18 13:20:15 +00:00
Greg Ercolano
6ada360174 Docs for fl_choice() clarify argument order, added missing image for one of the examples.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12847 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-18 09:52:00 +00:00
Manolo Gouy
2bae646a3c Only fix correct indenting of function fl_convert_pixmap()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12846 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-17 06:53:28 +00:00
Manolo Gouy
c5ab11bbec Comments only: extend "Implementation note about image drawing" to describe the mask_bitmap virtual member function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-16 13:21:54 +00:00
Matthias Melcher
447e33c607 Getting rid of warning in Xcode 9.3
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-16 13:06:31 +00:00
Manolo Gouy
26aabc91e1 Remove virtual member Fl_GraphicsDriver::mask_bitmap(char **) and its re-implementations.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12843 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-16 13:00:29 +00:00
Manolo Gouy
9b01ff63e7 Remove Fl_PostScript_Graphics_Driver::mask_bitmap(char **) that is useless.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12842 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-16 10:43:28 +00:00
Manolo Gouy
e85fd31f54 Comments only: complete "Implementation note about image drawing" about how to destroy cached images.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12841 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-16 08:03:16 +00:00
Manolo Gouy
a70846730b Add Fl_Android_Graphics_Driver::delete_bitmask() needed to uncache a cached Fl_Bitmap image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12840 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-16 07:59:49 +00:00
Manolo Gouy
f089bd6445 Remove useless re-implementation of this virtual member function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12839 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-16 07:56:52 +00:00
Manolo Gouy
ecc1f90506 Comments only: extend the description of how Fl_Graphics_Driver derived classes support image classes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12838 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-15 06:44:50 +00:00