summaryrefslogtreecommitdiff
path: root/src/drivers
AgeCommit message (Collapse)Author
2025-03-07Fixing error where std::string could be assigned NULL'Matthias Melcher
2025-03-07Fix "fltk autotools build does not link against libXft" (#1202)ManoloFLTK
libXft was erroneously present in the link command when using Pango and Cairo. This is fixed by disconnecting the GUI scaling code from use of Xft. This commit also makes sure that when Wayland is used, pkg-config is available on the build machine. This allows to remove from file CMake/options.cmake code that was labelled with "FIXME".
2025-03-07Removes the remaining references to Fl_String.Matthias Melcher
Still to do: rename fl_filename... to fl_filename..._str and introduce into core library.
2025-03-07Fixing a couple of warnings.Matthias Melcher
2025-03-07One more FL_String::apend fix,Matthias Melcher
2025-03-07Replce Fl_String in Fluid with std::string.Matthias Melcher
Also fix for Linux.
2025-03-04Fix "Windows: dotted lines may be drawn solid when GUI is rescaled" (#1214)ManoloFLTK
2025-02-24Remove deprecated, commented-out code.ManoloFLTK
This code was used in the past to support a deprecated way to obtain the initial value of the GUI scaling factor for the X11 platform.
2025-02-21Fix "Wayland: resizing window may crash the program" (#1210)ManoloFLTK
2025-02-08Make Fl_Cocoa_Gl_Window_Driver::capture_gl_rectangle() return a depth-4 imageManoloFLTK
This change allows to capture the rounded corners of a top-level GL window. Also, rename Fl_Cocoa_Window_Driver::capture_decorated_window_10_5() from capture_decorated_window_10_6() because this function uses CGWindowListCreateImageFromArray() available from macOS 10.5.
2025-02-06fix macOS Sonoma/Sequoia not capturing OpenGL text on macOS - cont'd (#1197ManoloFLTK
2025-02-06fix "macOS Sonoma/Sequoia not capturing OpenGL 1 text on macOS" (#1197)ManoloFLTK
2025-02-05Fix typos and trailing whitespaceAlbrecht Schlosser
Also replace 'MSWindows' with 'Windows' where appropriate, leaving only old documents like README files from 1.3 and older as-is.
2025-01-30macOS: Fix "Full screen broken on macOS in FLTK 1.3.10 (regression)" (#1192)ManoloFLTK
FLTK now supports 2 types of fullscreen modes under macOS: 1) normal macOS fullscreen mode where the menubar and titlebar appear when mouse is moved to top of screen and the window covers one screen only; 2) multiple-screen mode that requires calling Fl_Window::fullscreen_screens() before. This commit fixes all possible transitions between these fullscreen modes and normal window mode.
2025-01-24Same effect as a49b5ea with less lines of codeManoloFLTK
2025-01-24Fix "Wayland: redrawing of a surface may fail if a subsurface is being ↵ManoloFLTK
moved" (#1191) This commit adds support of scenarios where a child window is moved while its parent is simultaneously modified.
2025-01-22Windows: replace "Arial" by "Microsoft Sans Serif" for the FL_HELVETICA ↵ManoloFLTK
font family Users who need the old behavior for strict backwards compatibility under Windows can load the previous (Arial) font at program startup with only a few lines of code: #ifdef _WIN32 // reset Windows fonts to pre-1.4.2 state Fl::set_font(FL_HELVETICA, " Arial"); Fl::set_font(FL_HELVETICA + 1, "BArial"); Fl::set_font(FL_HELVETICA + 2, "IArial"); Fl::set_font(FL_HELVETICA + 3, "PArial"); #endif
2025-01-22Remove incorrect use of Fl_Window::current() in ↵ManoloFLTK
Fl_Quartz_Image_Surface_Driver c'tor Fl_Window::current() can refer to a deleted window is some scenarios
2025-01-20Attempt to improve member function ↵ManoloFLTK
Fl_Wayland_Screen_Driver::insertion_point_location() This makes the IM aware of the cursor movement to the right after having committed text.
2025-01-18Make Fl_SVG_Graphics_Driver use the C locale when writing float values - cont'dManoloFLTK
2025-01-11Repair incorrect path in #include directiveManoloFLTK
2025-01-11Make Fl_SVG_Graphics_Driver use the C locale when writing float valuesManoloFLTK
2025-01-10Wayland platform: fix handling of key repeatsManoloFLTK
2025-01-10Fix Fl_{Wayland|Xlib}_{Copy|Image}_Surface_Driver::set_current()ManoloFLTK
Member function Fl_Cairo_Graphics_Driver::set_cairo() needs be called only to initialize the driver. Doing it also later undoes the effect of Fl_Widget_Surface::translate() if used when Fl_Surface_Device::pop_current() calls the overridden Fl_Surface_Device::set_current().
2025-01-08Make draw to image and draw to clipboard behave equally in X11 and WaylandManoloFLTK
2024-12-26Wayland: fix a border case in member function Fl_Wayland_Window_Driver::resize()ManoloFLTK
2024-12-21FLUID: Improve path handling on Windows.MatthiasWM
2024-12-10Fix compiler warnings (VS 2019)Albrecht Schlosser
Found with warning level: /W3
2024-12-06Remove unnecessary friend declarationManoloFLTK
2024-12-03Fix Drawing bugs on Windows at very large scales (#1144) - cont'dManoloFLTK
2024-12-02Fix: Drawing bugs on Windows at very large scales (#1144)ManoloFLTK
2024-11-25 Fix: Graphical glitches on 101 DPI screen (#1138)ManoloFLTK
2024-11-20 Fix: Can't control scale of Fl_Copy_Surface dimensions on Linux (#1135)ManoloFLTK
2024-11-20Fix fl_draw_image sometimes crashes when window is scaled - cont'd (#1134)ManoloFLTK
2024-11-13Fix Cairo: Rounding issues with Fl_RGB_Image::draw() + Fl_Copy_Surface (#1124)ManoloFLTK
2024-11-12Windows: Fix flicker/animation when transitioning from fullscreen to maximizeddannye
2024-11-12 Fix Keyboard shortcut (alt + letter) does not work in input widget-Windows ↵ManoloFLTK
(#1122)
2024-11-09Fix Windows: fullscreen_off does not correctly preserve window size (#1116)ManoloFLTK
2024-11-09Wayland: protect against rounding errors in copy_region()ManoloFLTK
2024-11-08Fix: X11: test/gl_overlay stale overlay rendering (#1111)ManoloFLTK
2024-11-08Fix macOS Very minor high DPI rounding issue with fl_rect (#1113)ManoloFLTK
2024-11-08Fix: fl_draw_image() with horizontal flip reads out of bounds (#1112)ManoloFLTK
2024-11-08Slightly improve member function Fl_Wayland_Graphics_Driver::copy_offscreen()ManoloFLTK
2024-11-08Fix X11: test/checkers drawing artifacts when window is scaled (#1109)ManoloFLTK
2024-11-07Fix X11: test/curve "points" mode not drawn correctly (#1110)ManoloFLTK
2024-11-01New member function ↵ManoloFLTK
Fl_Cocoa_Window_Driver::capture_decorated_window_10_6(NSWindow*) This function hides the code to capture an image of a window that varies a lot with macOS versions
2024-11-01Wayland: Fix issue in maximization of a borderless window (#1099)ManoloFLTK
Also fixes scenarios mixing fullscreen and maximization: - maximize - set fullscreen - unset fullscreen - un-maximize with and without window border.
2024-10-31Windows: fix compiler warning [-Wstrict-aliasing]Albrecht Schlosser
In function ‘void innards(...)’: src/drivers/GDI/Fl_GDI_Graphics_Driver_image.cxx:132:23: dereferencing type-punned pointer will break strict-aliasing rules BITMAPINFO &bmi = *((BITMAPINFO*)bmibuffer); ~^~~~~~~~~~~~~~~~~~~~~~~ Found with gcc 12 (MinGW cross compiler) Also: use correct sizes (sizeof) rather than hardcoded values.
2024-10-31Restore Fl_Widget_Surface::draw_decorated_window() under XQuartzManoloFLTK
2024-10-27Quick fix for Windows Ctrl character handling - cont'dManoloFLTK