summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-10-26Restore support of OpenGL on retina without Fl::use_high_res_GL(1)ManoloFLTK
Apparently the default value of the wantsBestResolutionOpenGLSurface property changed with macOS Catalina 10.15
2019-10-22Add default value of 0 for 1st arg of member function Fl_Printer::begin_job().ManoloFLTK
2019-10-20Avoid useless code when drawing directly.ManoloFLTK
2019-10-14Rewrite for macOS 10.15 CatalinaManoloFLTK
Another way to support what occurs under macOS 10.15 where the bitmap graphics context prepared by the system when drawRect: runs sometimes changes its number of bytes/row even if the width and height are unchanged. This is expected to perform better when the number of bytes/row alternates between two values.
2019-10-12Fix for macOS Catalina 10.15ManoloFLTK
Under Catalina, the bitmap graphics context prepared by the system when drawRect: runs sometimes changes its number of bytes/row even if the width and height are unchanged.
2019-10-09Faster processing of layer-backed views used with MacOS ≥ 10.14ManoloFLTK
Calls to CGBitmapContextCreateImage() and CGContextDrawImage() are replaced by faster calls to memcpy().
2019-09-24Faster drawing of layer-based windows if entirely redrawnManoloFLTK
2019-09-15X11 platform: use Gnome printer dialog when the GTK library is available at ↵ManoloFLTK
run-time The code to determine whether the GTK library is available is now in Fl_X11_System_Driver::probe_for_GTK() called both by Fl_Printer::begin_job() and Fl_Native_File_Chooser. New Fl::option OPTION_PRINTER_USES_GTK allows to deactivate use of the Gnome print dialog. Minor change in Fl_Native_File_Chooser: GTK version 3 is searched before version 2, whereas the search order was the opposite before.
2019-09-11Fix use of Xrender extension with old, 16-bit framebuffers.ManoloFLTK
Subject "Bug in 1.4 Displaying PNG under x64 Kernel x86 app." in fltk.general contains a report by Darren Legge that presents the problem, and a later post stating the code modification does fix the problem.
2019-08-29Fix remaining compiler warnings of (STR 3529)Albrecht Schlosser
src/Fl_File_Chooser2.cxx src/Fl_File_Icon2.cxx src/Fl_Help_View.cxx The only known warnings are now in src/Fl_x.cxx as mentioned in comment #1.
2019-08-27Added new method Fl_Tree_Item::event_on_item()Greg Ercolano
2019-08-27Added NULL checks in Fl_Tree_Item::move()Greg Ercolano
2019-08-27Fix STR #3432: fixed drag+drop on folderGreg Ercolano
With reference to Sanch's patch from the STR, plus some extra mods for handling edge conditions (such as root()) and comment clarifications.
2019-08-27Fix window moving between retina/non-retina display with a GL subwindow.ManoloFLTK
2019-08-25More fixes for STR #3527; handle usericons, etcGreg Ercolano
2019-08-24Fixes STR #3527: Fl_Tree small drags on open/close icons change selectionGreg Ercolano
2019-08-23Add check useful with macOS 10.15 public beta (Catalina).ManoloFLTK
2019-08-21Fix a case when fl_read_window() did not capture subwindows correctly.ManoloFLTK
The case was under macOS with a non-GL parent window mapped to a retina display containing a GL subwindow and if the app did not call Fl::use_high_res_GL(1).
2019-08-19Avoid repetition of the same multiplication.ManoloFLTK
2019-08-18Improved implementation of layer-backed views under macOS ≥ 10.14ManoloFLTK
This new implementation does all screen drawing through the drawRect: method. The benefit is that [[NSGraphicsContext currentContext] CGContext] provides a system-built drawing context whose product ultimately appears on screen. Feed-back from the fldigi FLTK application shows that this procedure is measurably faster that the previous one when drawing a rapidly changing image.
2019-08-12Support copy function in Fl_Color_ChooserAlbrecht Schlosser
Users can press ctrl-c (or ctrl-x) while using the fl_color_chooser() function or the Fl_Color_Chooser widget to copy the current color selection to the clipboard.
2019-07-18X11: support copy/paste of image via clipboard within a single appManoloFLTK
X11 requires to process differently paste if both copy and paste are within the same app or are in 2 separate apps. This was implemented for paste of text. It's now also implemented for paste of image.
2019-07-18Fl_GDI_Copy_Surface_Driver: add BITMAP version of graphics to clipboardManoloFLTK
When copying graphical data to the clipboard with Fl_Copy_Surface, both a vectorial and a bitmap versions of the graphics are copied.
2019-07-13Fl_WinAPI_Printer_Driver::end_page(): make sure rotation stops when the page ↵ManoloFLTK
ends
2019-07-08Fl_Quartz_Copy_Surface_Driver: minor code reorganisation.ManoloFLTK
2019-07-06Correct guard for adequate version of macOS SDKManoloFLTK
2019-07-06Add support for macOS 10.15 "Catalina"ManoloFLTK
This is relatively to Catalina public beta for now.
2019-07-03Fix a subtle bug in Fl_Menu_::menu_end()Albrecht Schlosser
This bug could cause memory allocation/free errors and eventually cause a crash.
2019-07-03Fix a bug appeared in macOS 10.15 Catalina Beta about GUI scaling transient ↵ManoloFLTK
window. The bug is that the app freezes for a few seconds before the yellow transient window is closed if the close message is set from within a timer callback. If the window to close returns NO to the canBecomeKeyWindow message, the bug does not occur. Anyway it's good that canBecomeKeyWindow returns NO for a window with the OUTPUT flag.
2019-06-29Prepare for support of macOS 10.15 CatalinaManoloFLTK
Drawing the window titlebar to a PDF context does not work with Catalina Beta.
2019-06-27Add method Fl_Menu_::menu_end() (STR 3523)Albrecht Schlosser
This method can be called after all menu modifications to make sure the menu() array is relocated (copied from the internal working area) to a private place owned by the Fl_Menu_ instance. menu_end() is now called in Fl_Menu_Button::popup() to make sure the menu array is in private storage. This fixes STR 3523 w/o user code changes. Calling menu_end() is in most cases optional. Todo: call menu_end() where useful (or necessary), e.g. in Fl_Choice, Fl_Menu_Bar, etc. ?
2019-06-22Update dependency systemAlbrecht Schlosser
Try to make `make depend' independent of locale.
2019-06-21Simpler list of virtual member functions of Fl_Gl_Window_DriverManoloFLTK
2019-06-19Fix building for Windows platform when HAVE_GL_OVERLAY is set to 1ManoloFLTK
2019-06-19Rename variable from txt_buf to alpha_bufManoloFLTK
2019-06-18Avoid "uninitialized memory" error in gl_drawAlbrecht Schlosser
As discussed in fltk.general, valgrind reported errors when gl_draw() is called and the text is converted to a texture (i.e. when testing whether the texture already exists). We need a length check to make sure we don't overrun text buffers. See threads "gl_draw" and "gl_draw - [General Use]", respectively, started on Jun 19, 2019.
2019-06-18Slightly simpler Fl_WinAPI_Screen_Driver::init()ManoloFLTK
2019-06-16Windows platform: resize all windows after screen configuration eventsManoloFLTK
2019-06-16Make FLTK Windows apps "Per-Monitor-V2 DPI Aware"ManoloFLTK
Per-Monitor V2 awareness mode is supported on Windows 10 1703 or above and has window title bars correctly scaled on HighDPI screens. Before this commit, FLTK Windows apps were "Per-Monitor-V1 DPI Aware". FLTK apps detect at run-time whether the V2 mode is possible.
2019-06-12Move Fl_Cocoa_Window_Driver::capture_titlebar_and_borders() to ↵ManoloFLTK
Fl_Cocoa_Window_Driver.cxx from Fl_cocoa.mm
2019-06-11Fix Fl_WinAPI_Window_Driver::capture_titlebar_and_borders() when window ↵ManoloFLTK
titlebar is partially out of screen
2019-06-06Add one argument to Fl_Screen_Driver::read_win_rectangle()ManoloFLTK
The new argument gives the window to be captured, or NULL to indicate capture from the current offscreen. Calling this function becomes easier because less dependent on global variables.
2019-06-06Fix in Fl_Xlib_Graphics_Driver::font_unscaled() necessary when changing ↵ManoloFLTK
drawing surfaces
2019-06-03Better use of the did_view_resolution_change message sent to FLViewLayerManoloFLTK
2019-06-03X11+Pango: fix case when function pango_font_get_glyph_extents() failsManoloFLTK
2019-06-02X11+Pango: font names visible in the fonts and utf8 apps are usable for ↵ManoloFLTK
Fl::set_font(Fl_Font, const char*)
2019-05-30X11+Pango: call pango_font_description_from_string() less oftenManoloFLTK
Previously, each time fl_font(fnum, fsize) was called, functions pango_font_description_free() and pango_font_description_from_string() would be called. Now, pango_font_description_from_string() is called only once, the first time an Fl_Font is used.
2019-05-27Fix Fl_X11_Window_Driver::capture_titlebar_and_borders() for scaled, ↵ManoloFLTK
partially visible windows
2019-05-25Slightly simplify Fl_X11_Window_Driver::capture_titlebar_and_borders()ManoloFLTK
2019-05-25Restore the value of global variable fl_windowManoloFLTK