summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-03-15Protect GL_SILENCE_DEPRECATION from re-definition.Rob McDonald
2023-03-14Cairo: introduce Fl::cairo_flush() in FLTK APIAlbrecht Schlosser
Flushing the Cairo context is necessary on Windows to make Cairo drawings appear on the device (screen). This new method makes it easy for user code to do this correctly after using Cairo drawings. - add Fl::cairo_flush(cairo_t *) - document Fl::cairo_flush(cairo_t *) - reformat Cairo doxygen docs and code (partially) - use the new method in Fl_Cairo_Window - use the new method in test/cairo_test.cxx - other minor (text) changes in test/cairo_test.cxx - add test/cairo_test to the demo menu (test/demo.menu)
2023-03-14Fix Fl_Wayland_Screen_Driver::get_mouse() for scale factor effectManoloFLTK
2023-03-14Wayland: add support for multiple high or low DPI displays - cont'dManoloFLTK
2023-03-14Wayland: improve cursor_surface_enter()ManoloFLTK
2023-03-13Fix Fl_Wayland_Window_Driver::set_cursor_4args()ManoloFLTK
2023-03-13Remove unused variableManoloFLTK
2023-03-13Wayland.dox: document recent changes about custom cursorsManoloFLTK
2023-03-13Wayland: add support for multiple high or low DPI displaysManoloFLTK
2023-03-12Simplify the previous Cairo drawing fix (#694)Albrecht Schlosser
The Cairo context 'cc' should be used directly rather than calling 'Fl::cairo_cc()' again. Sorry for the noise.
2023-03-12Fix Cairo drawing in test/cairo_test demo for Windows (#694)Albrecht Schlosser
On the Windows platform Cairo drawings must be flushed explicitly. This is done in Fl_Cairo_Window after calling the draw callback but it was neither done nor documented in test/cairo_test.cxx when using another type of Window with its overloaded draw() method, i.e. when FLTK was configured with --enable-cairoext or CMake OPTION_CAIROEXT. Note: user code must either explicitly flush the Cairo drawings as done here or destroy the Cairo context which is not done in this demo because the Cairo context should be kept alive.
2023-03-10Fix c'tor of Fl_Wayland_Image_Surface_Driver for HighDPI displaysManoloFLTK
2023-03-10Improve member function Fl_Wayland_Gl_Window_Driver::make_current_before()ManoloFLTK
2023-03-09Fix dependencies, typos, trailing whitespace, and formattingAlbrecht Schlosser
No code changes.
2023-03-09Remove Doxygen warning about incorrect #include directiveManoloFLTK
2023-03-09Remove warnings when fl_attr.h is compiled in CManoloFLTK
2023-03-09Fix Visual Studio (MSVC) compiler warningsAlbrecht Schlosser
2023-03-09Fix gl_overlay under WaylandManoloFLTK
2023-03-09CMake: build shared libs with OPTION_CAIROEXT (issue #250)Albrecht Schlosser
- remove separate libfltk_cairo to avoid cyclic dependencies, but - keep a dummy libfltk_cairo in 1.4.0 for backwards compatibility - move cairo/Fl_Cairo.cxx to src/Fl_Cairo.cxx - add preliminary Cairo support for Visual Studio (MSVC) Static linking is not affected by this change, but users building with hand-made Makefiles will have to remove libfltk_cairo starting with FLTK 1.4.0. The dummy library can be linked for backwards compatibility but it will be removed later (in 1.4.x or 1.5.0). The shared FLTK library libfltk.{so|dylib|dll|..} depends on libcairo if and only if FLTK is built with one of the Cairo options. This has always been the case for OPTION_CAIROEXT but is now also true if only OPTION_CAIRO is selected, i.e. FLTK programs linked with a Cairo enabled shared FLTK library will also be linked with libcairo. The same is true for configure options --enable-cairo and --enable-cairoext, respectively. Preliminary Cairo support for MSVC now detects a Cairo installation using the CMake variable FLTK_CAIRO_DIR which must be set by the user. Note that this feature is temporary and may be changed in the future for a better and more comfortable version.
2023-03-09Fix Fl_Wayland_Screen_Driver::x() and friendsManoloFLTK
2023-03-08Wayland.dox: more details about window positioningManoloFLTK
2023-03-08Remove useless repetition from array dead_keys[]ManoloFLTK
2023-03-08Fix: Shift-Tab not "reverse navigating" on some platforms (#696)ManoloFLTK
2023-03-07Fix typo in Wayland Doxygen docManoloFLTK
2023-03-06DnD of filenames: make Wayland behave as Windows and macOSManoloFLTK
and also add more detailed documentation of platform-specific behaviors.
2023-03-05Wayland: improve DnD of filenames to allow space-containing namesManoloFLTK
2023-03-04Simpler use of member variable wl_registry in class Fl_Wayland_Screen_DriverManoloFLTK
2023-03-03Remove unused variable declaration + fix in wayland.doxManoloFLTK
2023-03-03Reorder members of class Fl_Wayland_Screen_DriverManoloFLTK
2023-03-03Miscellaneous minor additions to Wayland documentationManoloFLTK
2023-03-03Improve Fl_Wayland_Window_Driver::wld_scale()ManoloFLTK
2023-03-02Fix typos in Doxygen documentationManoloFLTK
2023-03-02Better document type struct Fl_Wayland_Screen_Driver::outputManoloFLTK
2023-03-02Add Fl_Wayland_Window_Driver::wld_scale() member functionManoloFLTK
2023-03-01Fix regression: failed to build shared FLTK libsAlbrecht Schlosser
Add FL_EXPORT to some classes to make building shared libs possible. Building shared libs and 'fluid-shared' missed global symbols.
2023-03-01FLUID Fix resizable of Widget panelMatthias Melcher
2023-03-01Improved Fl_String capacity incrementsMatthias Melcher
2023-02-28Fix fltk-config --use-images with local image libs (#689)Albrecht Schlosser
CMake only: replace wrong variable names with correct ones. Affected were all image libraries (jpeg, png) and zlib. These variables had been renamed in an earlier commit when lots of CMake code had been rewritten.
2023-02-27Fix malloc/delete mismatchMatthias Melcher
2023-02-25Add Fl_String to Fl_Preferences (#687)Matthias Melcher
2023-02-24Derive internal Fl_Help_View buffer from Fl_StringAlbrecht Schlosser
Refactor the internal class HV_Edit_Buffer by deriving it from the the recently extended Fl_String class. The class HV_Edit_Buffer still needs some "special" methods but the code could be simplified substantially.
2023-02-23Move animated gif images to the test/images folderAlbrecht Schlosser
... to make them accessible to the help_dialog test if built with CMake.
2023-02-23Fl_String refactoring and extension (#683)Matthias Melcher
- add true unittest and Fl_String testing - interface and printout are similar to gtest without requiring external linkage. just run `unittest --core`. - new Fl_String API - extended API to fl_input_str and fl_password_str - co-authored-by: Albrecht Schlosser <albrechts.fltk@online.de>
2023-02-21Wayland: more detailed documentation of struct fl_wld_bufferManoloFLTK
Also, remove Doxygen warning from file bundled-libs.dox
2023-02-21Silence false positive gcc warning (#682)Albrecht Schlosser
... and fix a typo. This warning was reported for gcc 12.2 (MinGW-w64 / MSYS2) but may have appeared in earlier gcc versions (gcc 9.4 is not affected). It's very likely that this warning needs '-O2' or '-O3' to be issued.
2023-02-21Update recipe to update the bundled png source codeManoloFLTK
2023-02-20Re-apply PNG warning fix (#296, #682)Albrecht Schlosser
The fix for compiler warning [-Wmaybe-uninitialized] had been fixed in commit 2b400f6abcbd26377b298deb5ee6f7d0166cdfd6 but accidentally reverted in commit 39eba133de302f393cc2dabfa5c1d933239cd1ce.
2023-02-20Add GLUT_ELAPSED_TIME simulationMatthias Melcher
2023-02-20Remove 2 compilation warnings under Windows with mingw64ManoloFLTK
Compiling Fl_Native_File_Chooser_WIN32.cxx... fl_dnd_win32.cxx:436:11: warning: private field 'm_EnumF' is not used [-Wunused-private-field] FLEnum *m_EnumF; ^ 1 warning generated. Fl_Native_File_Chooser_WIN32.cxx:378:19: warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical] bool unixpath = IsUnixPath(_directory) | IsUnixPath(_preset_file); // caller uses unix paths? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ || Fl_Native_File_Chooser_WIN32.cxx:378:19: note: cast one or both operands to int to silence this warning 1 warning generated.
2023-02-20Wayland developer's documentation: miscellaneous updatesManoloFLTK