summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-12-22Missing parenthesesMatthias Melcher
2022-12-22Fix compilation on old gcc (#606)Matthias Melcher
* Fixing char* use in FLUID * Fixing const cast
2022-12-20Clean up class Fl_String (part of issue #601)Albrecht Schlosser
- remove static variable 'string_count' - improve and document methods debug() and hexdump() This commit does not resolve issue 601 but removes some development leftovers. Methods debug() and hexdump() left for debugging as requested.
2022-12-19Update dependencies, remove trailing whitespaceAlbrecht Schlosser
2022-12-19Fix compiler warning (unused variable)Albrecht Schlosser
2022-12-19Complete Fl_Cairo_Graphics_Driver::restore_clip()ManoloFLTK
The driver's clip_ member was not updated to the new Cairo clip state which rendered function Fl_Cairo_Graphics_Driver::clip_box() inaccurate.
2022-12-18Added ansi_show_unknown(bool) (default off)Greg Ercolano
It may be useful to some to have the terminal emit an error character to show unknown escape sequences. Off by default, unknown escape sequences are silently ignored. If enabled, '¿' is inserted instead.
2022-12-18Fix "link errors connected with recent Zenity dialog feature" (#602)ManoloFLTK
2022-12-17ESC sequences can traverse append(), unicode support for backspaceGreg Ercolano
This is basically a rewrite of the ESC handler, keeping state in the class, so ESC sequences can continued between called to append() (such as when reading data from a pipe in blocks). New private class 'Fl_Escape_Seq' handles parsing and state info. It also has careful bounds checking during parsing. Backspace supports Unicode, and the unicode chars can straddle across append() operations as well. Private variables in Fl_Simple_Terminal renamed _xxx to xxx_ to improve CMP compliance.
2022-12-17Update SVG binary constructor documentationMatthias Melcher
2022-12-17Add cross-platform fl_close_fd(int fd) to close a file descriptorManoloFLTK
2022-12-17Remove further unused code after 12da87bManoloFLTK
2022-12-17Remove useless Fl_System_Driver members after 12da87bManoloFLTK
2022-12-17Adding length checks for in-memory image data (see #542) (#592)Matthias Melcher
SVG is now decompressed in memory Bitmap invalid array length handling to return an error RGB Image data reader to return error if image data is too short FLUID: Add size argument to bitmap and JPEG data
2022-12-16Added backspace handling to simple terminal ansi() modeGreg Ercolano
This addresses a comment from MoAlyousef in issue #577 on 12/15/2022 requesting backspace processing.
2022-12-16Derive Fl_Zenity_Native_File_Chooser_Driver from Fl_Kdialog_Native_…ManoloFLTK
Also add Fl::option(OPTION_FNFC_USES_ZENITY)
2022-12-16Add Zenity-based file chooser based on the KDialog one (HugLifeTiZ)Trent McPheron
If available, it is used on Linux regardless of the current desktop because it offers free XDG portal integration, which means it picks the correct file chooser on all desktops, and allows for meaningful file selection in sandbox environments like Flatpak.
2022-12-16 Fix for "Recent macos build issues" (#598)ManoloFLTK
2022-12-15Rename some Fl_Flex methods for FLTK compliance (#594)Albrecht Schlosser
Change some method names to comply with FLTK style as discussed in fltk.coredev, thread "Fl_Flex method name question". * Rename Fl_Flex::margins(...) to Fl_Flex::margin(...) (use singular form for all margin related methods) * Remove Fl_Flex::setSize() and isSetSize() "backwards compatibility" methods * Rename Fl_Flex::set_size(...) to fixed(...) Note: the latter affects existing (pre-release) fluid (.fl) files: you may want to edit and replace "set_size_tuples" with "fixed_size_tuples"
2022-12-15macOS: Add "Show hidden files" button to native file chooserManoloFLTK
2022-12-13Fix trailing whitespace and dependenciesAlbrecht Schlosser
2022-12-13Fix compiler warning [-Wmaybe-uninitialized]Albrecht Schlosser
Fl_BMP_Image.cxx:228:30: warning: ‘width’ may be used uninitialized in this function 228 | int maskSize = (((width*Bpp+3)&~3)*height) + ... | ~~~~~^~~~
2022-12-10Add option to bind images to a widget (#589)Matthias Melcher
Adding image binding to FLUID as well
2022-12-10Text positioning different in 1.4.x vs 1.3.x (#568) - cont'dManoloFLTK
@wcout reports that we get better results if function pango_font_metrics_get_height() is not used until version 1.50.6 and above of libpango. The difference is specially visible with underscore characters in unscaled, standard DPI displays. This commit does that.
2022-12-10Defer opening the display as much as possible (#586)Matthias Melcher
2022-12-10Fixes some VC compiler warningsMatthias Melcher
2022-12-10Windows: fix memory leak caused by RegisterDragDrop (#569)Albrecht Schlosser
- call RevokeDragDrop() when the window is hidden - do not delete the *static* FLDropTarget object
2022-12-10Fixes OpenGL complex polygons when scaling (#576)Matthias Melcher
Also fixes gap()
2022-12-10"Public members Fl::awake_ring_*_ should be private" (#559) - cont'dManoloFLTK
2022-12-09Suppress (GitHub CI/wayland) compiler warningAlbrecht Schlosser
[ 15%] Building CXX object src/CMakeFiles/fltk.dir/Fl_Text_Display.cxx.o .../fltk/src/Fl_Text_Display.cxx: In constructor ‘Fl_Text_Display::Fl_Text_Display(int, int, int, int, const char*)’: .../fltk/src/Fl_Text_Display.cxx:122:57: warning: ‘void* __builtin_memset(void*, int, long unsigned int)’ writing between 4 and 8589934584 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 122 | for (int i=1; i<mNVisibleLines; i++) mLineStarts[i] = -1; | ~~~~~~~~~~~~~~~^~~~ .../fltk/src/Fl_Text_Display.cxx:120:39: note: at offset 4 into destination object of size 4 allocated by ‘operator new []’ 120 | mLineStarts = new int[mNVisibleLines]; | ^ This warning is IMHO obsolete because the code in question should not be executed at all (mNVisibleLines == 1). However, the compiler seems to substitute this with '__builtin_memset(...)' and analyzes "correctly" that memory at offset 4 would be overwritten but not that the written size would be 0. The "fix" uses a compiler macro and #if to clarify that this code must not be executed and should not be compiled (see comment why this code exists).
2022-12-09Fix for "Public members Fl::awake_ring_*_ should be private" (#559)ManoloFLTK
2022-12-09Comment only: put Fl_Display_Cairo_Graphics_Driver in class hierarchyManoloFLTK
2022-12-09Add new Wayland-specific fl_wl_compositor() functionManoloFLTK
2022-12-09Fix Fl_Text_Display drawing of line numbers (#578)wcout
The formerly undrawn rectangle beneath (or above) the line numbers is now filled with FL_BACKGROUND_COLOR. Additionally the small rectangle between the scrollbars is now filled with FL_BACKGROUND_COLOR instead of FL_GRAY for consistency.
2022-12-09New Fl_ICO_Image class to read Windows .ico icon filesManoloFLTK
Many thanks to @darealshinji for contributing all the code for this new FLTK image class (see branch Fl_ICO_Image of https://github.com/darealshinji/fltk).
2022-12-08Fix typo in commentAlbrecht Schlosser
2022-12-08Fix compilation warning, update dependenciesAlbrecht Schlosser
Warning: variable ‘j’ set but not used [-Wunused-but-set-variable]
2022-12-08 Simpler prototype of Fl_Wayland_Graphics_Driver::buffer_commit() member - ↵ManoloFLTK
cont'd
2022-12-08Simplify prototype of Fl_Wayland_Graphics_Driver::buffer_commit() memberManoloFLTK
2022-12-07Wayland: fix progressive drawing as in test/mandelbrotManoloFLTK
2022-12-06Fix issue #537 without damaging test/mandelbrotManoloFLTK
2022-12-05Fixing fl_complex_polygon() compilation for WIN32 (#571)Matthias Melcher
2022-12-05Implement fl_complex_polygon() for OpenGL (#570)Matthias Melcher
2022-12-04Wayland: remove regression in mandelbrot introduced by 1a5d657ManoloFLTK
The panel was drawn solid black when test/mandelbrot was unfocussed.
2022-12-04Fl_Cairo_Graphics_Driver: simpler way to construct font from name+sizeManoloFLTK
2022-12-03Fix dotted line drawing under Cairo graphics driverManoloFLTK
2022-12-02Fix text drawn by pango is offset +1 pixel on x and y) (#568)ManoloFLTK
2022-11-30Add a unit test for drawing complex shapes (#565)Matthias Melcher
2022-11-30Remove useless fl_matrix member variable of class Fl_Graphics_DriverManoloFLTK
2022-11-30Remove small files fl_XXX_gl_platform_init.cxxManoloFLTK
The single-function content of these files is moved to Fl_XXX_Gl_Window_Driver.cxx.