summaryrefslogtreecommitdiff
path: root/src/drivers
AgeCommit message (Collapse)Author
2020-01-09Fix X11 RTL text clipping (STR 2798) - part 2Albrecht Schlosser
Yet another fix for RTL text...
2020-01-08Improve X11 coordinate clipping for text (STR 2798)Albrecht Schlosser
Text outside the 16-bit X11 coordinate space must be clipped before calling X11 draw functions, otherwise text might appear anywhere in the window because X11 would "truncate" the coordinates instead of proper clipping (X11 handles only 16-bit coordinates).
2020-01-03Fixed previous commit for MSWindows.MatthiasM
2020-01-03Linux build: typos and stupidities to prev. commitMatthiasWM
2020-01-03Linux/MSWindows: improved Fl_Preferences file path checkingMatthias Melcher
2020-01-03macOS: checking Fl_Preferences file path improvedMatthias Melcher
zlib: removed warning
2019-12-31Merge remote-tracking branch 'refs/remotes/origin/master'Matthias Melcher
2019-12-31Limiting file access for Fl_Preferences.Matthias Melcher
Added Fl_Preferences::file_access() and various flags that make it possible to limit or completely deny file access to the preferences system, either for the core library or for the application or both.
2019-12-26Fix Fl::add_timeout() under Linux (STR 3516)Albrecht Schlosser
See comment 14 (excerpt): "The current implementation basically handles add_timeout() the same way as repeat_timeout(), i.e. add_timeout() *calls* repeat_timeout(). However, repeat_timeout() intentionally *corrects* the timeout value by the value found in the global variable 'missed_timeout_by' which is set when the timer expires, directly before the timer callback is called. This variable is never reset." This commit resets the variable as necessary in Fl::add_timeout().
2019-12-22Android Image driver was incomplete and did not compile.Matthias Melcher
2019-12-09Fix Fl::add_timeout() in draw() under Linux (STR 3188)Albrecht Schlosser
Timeouts queued during Fl_Widget::draw() - called by Fl::flush() - would not be serviced unless other events were processed. For Details see STR 3188.
2019-11-08X11 + pango: Sort font names ignoring case.ManoloFLTK
2019-11-07Reorganise use of virtual member function Fl_Surface_Device::end_current()ManoloFLTK
2019-11-02Slightly simpler code to support fl_overlay_rect() on HighDPI screens.ManoloFLTK
2019-11-01Fix HiDPI support under X11 to read/draw RGB image from/to display.ManoloFLTK
2019-10-30Fix typo and debug output when loading libgtkAlbrecht Schlosser
A recent commit changed the library name, supposedly unintended. While testing I found that the debug statements generated confusing output (both "selected GTK-3" and "selected GTK-2") when GTK-3 was available.
2019-10-30Fix path to header fileManoloFLTK
2019-10-30Concentrate source code that supports Darwin + XQuartz + fink as test platformManoloFLTK
2019-10-22Add default value of 0 for 1st arg of member function Fl_Printer::begin_job().ManoloFLTK
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-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-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-06Add support for macOS 10.15 "Catalina"ManoloFLTK
This is relatively to Catalina public beta for now.
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-18Slightly simpler Fl_WinAPI_Screen_Driver::init()ManoloFLTK
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-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-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-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-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-13Remove Fl_Cocoa_Screen_Driver::flush() that is uselessManoloFLTK
2019-04-30Minor change in Fl_Cocoa_Window_Driver::shape(const Fl_Image*)ManoloFLTK
2019-04-28macOS: yet simpler implementation of window resize and rescale.ManoloFLTK
2019-04-20macOS: better support of Fl_Window::border(int)ManoloFLTK