summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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
2019-05-25Call virtual member Fl_Surface_Device::end_current() when necessaryManoloFLTK
Rename member function Fl_Surface_Device::end_current_() to end_current(), set it protected, and make it called by the destructor of all classes derived from Fl_Surface_Device that re-implement end_current(). This way, end_current() runs equally if Fl_Surface_Device()::pop_current() is called before or after the drawing surface is deleted.
2019-05-24Remove Fl_Copy_Surface_Driver::draw_decorated_window() that is unnecessaryManoloFLTK
2019-05-23Fix Fl_Cocoa_Printer_Driver::draw_decorated_window() for GUI scaling - cont'dManoloFLTK
2019-05-23Fix Fl_Cocoa_Printer_Driver::draw_decorated_window for scaled GUI.ManoloFLTK
Support for scaled GUI was missing when the window titlebar is not layer-based.
2019-05-22Implement Fl_Quartz_Copy_Surface_Driver::draw_decorated_window()ManoloFLTK
The window title is copied in vectorial form when the titlebar is layer-backed.
2019-05-22Improve drawing of Fl_RGB_Image's to Fl_Copy_Surface on macOSManoloFLTK
2019-05-22Support for fl_scroll() under macOS when GUI is scaled - cont'dManoloFLTK
Handles support of non-layered windows
2019-05-22Remove warning appeared with Doxygen 1.8.15ManoloFLTK
2019-05-21Support for fl_scroll() under macOS when GUI is scaledManoloFLTK
2019-05-20More accurate implementation of Fl_Cocoa_Window_Driver::decoration_sizes().ManoloFLTK
2019-05-20Remove small duplication of codeManoloFLTK
2019-05-18Avoid small repetitionManoloFLTK
2019-05-17Have Fl_Cocoa_Window_Driver::flush() use the drawRect: method to draw to ↵ManoloFLTK
non-layered views
2019-05-15Merge remote-tracking branch 'origin/master'ManoloFLTK
2019-05-15Restore use for GL windows under macOS 10.14.0Manolo Gouy
2019-05-15Document Fl_File_Input::errorcolor() as deprecatedAlbrecht Schlosser
Fl_File_Input::errorcolor() and Fl_File_Input::errorcolor(Fl_Color) have not been used anywhere. Marked as deprecated.
2019-05-15Remove class FLGLViewLayer and get simpler code.ManoloFLTK
2019-05-13Remove Fl_Cocoa_Screen_Driver::flush() that is uselessManoloFLTK