summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2022-11-30Remove superfluous friend declarations from class Fl_Graphics_DriverManoloFLTK
2022-11-29Build hybrid Wayland/X11 w/ configure: check for Xinerama, et alManoloFLTK
2022-11-29Fix for issue [Cairo]: Arrows have a "gap" (#561)ManoloFLTK
The problem to fix is that the arrow drawn by draw_arrow1() in src/fl_symbols.cxx displays a faint clear line between the stem and head of the arrow with the Cairo graphics driver. This occurs because draw_arrow1() draws the arrow in 2 steps (a rectangle + a triangle) and the Cairo driver is configured to use antialiasing when filling polygons. The antialiasing produces the faint line between stem and head. Why does draw_arrow1() draw a rectangle + a triangle rather than a 7-vertex polygon? That's because the X11 graphics driver fails with its polygon- drawing function when the polygon is also rotated: the polygon is drawn empty. We want to keep using antialiasing under Cairo for polygons because the result is better with non horizontal/vertical polygon edges. This implementation changes function draw_arrow1() which draws the arrow as a 7-vertex filled polygon except when the graphics driver returns false for its virtual member function can_fill_non_convex_polygon(). In that situation, draw_arrow1() draws, as before, a rectangle + a triangle. The new, virtual member function can_fill_non_convex_polygon() returns true except for the X11 graphics driver. Therefore, draw_arrow1() is effectively unchanged under the X11 driver.
2022-11-29Undoing commit at f7a1777 that breaks X11 drawingManoloFLTK
Under X11, rotated arrows loose their inside color with f7a1777
2022-11-29Fix for issue: Arrows have a "gap" (#561)ManoloFLTK
2022-11-29Fix -o and -h command line arg handlingMatthias Melcher
2022-11-28Doc: repeat that screens are numbered starting from 0 in the APIManoloFLTK
2022-11-27Fix forgotten name changeMatthias Melcher
2022-11-27fltk-config from configure: remove libdecor-related flags - cont'dManoloFLTK
2022-11-27macOS+OpenGL3: remove "warning: gl.h and gl3.h are both included"ManoloFLTK
2022-11-26Update dependenciesAlbrecht Schlosser
2022-11-26Simplify and improve "oxy" arrow drawing functionsAlbrecht Schlosser
- change drawing arrows from lines to polygons - remove superfluous functions - add more comments
2022-11-26Local undo per Fl_Text_Buffer and Fl_Input_ (#557)Matthias Melcher
2022-11-26Make the value box size of Fl_Value_Slider user settable (STR 3222)Albrecht Schlosser
For a very simple test program see STR 3222, File 2: https://www.fltk.org/strfiles/3222/value_slider.cxx Known issues: - range checking of the value box size is very limited - resizing the widget does not change the value box size - drawing issues are possible if the value box size and the widget size are not compatible (e.g. value box too large)
2022-11-26Remove unintentional C++11Matthias Melcher
2022-11-26fltk-config from configure: remove libdecor-related flagsManoloFLTK
2022-11-26Handle Fluid project settings better (#556)Matthias Melcher
Fix allocation bug in Fl_String
2022-11-25Fix GitHub Actions (CI) for Windows buildsAlbrecht Schlosser
This was necessary because the latest GitHub "runner" image (20221120.1) includes incompatible image libs (libjpeg, libpng, and zlib). This caused `fluid-cmd.exe` to fail with error code -1073741511. For further information please refer to this GitHub Issue: https://github.com/actions/runner-images/issues/6627 The previous runner version (20221027.1) did not include these libs and our build used the internal libs and worked. The fix is to disable the search for system libs in CMake. Note: this does not explain *why* these libs are incompatible.
2022-11-25Add i18n to test/preferences (#555)Matthias Melcher
To test the output of FLUID code and demonstrate i18n, preferences emulates GNU gettext.
2022-11-25Make Fl_XXX_Graphics_Driver::create_bitmask() a static member functionManoloFLTK
2022-11-25Fix silly Visual Studio compiler warnings in oxy schemeAlbrecht Schlosser
2022-11-25Avoid thin gray line in round box in hiresMatthias Melcher
2022-11-25CI build-Wayland: package libpangocairo-1.0-0 is installed by defaultManoloFLTK
2022-11-25Fix GDI graphics driver use for bitmasksMatthias Melcher
2022-11-25Add "Oxy" scheme (STR 2675, STR 3477)Albrecht Schlosser
This commit is similar to the patch given in STR 3477, oxy_v5.diff: https://www.fltk.org/strfiles/3477/oxy_v5.diff ... with modifications, and updated to current FLTK code.
2022-11-24Fix two new Visual Studio compiler warningsAlbrecht Schlosser
2022-11-24Improve text drawing above GL3 scene under macOSManoloFLTK
2022-11-24Remove two "warning: pointer xxx used after void* realloc()" messagesManoloFLTK
2022-11-24Fix two Visual Studio compiler warningsAlbrecht Schlosser
+ fix trailing whitespace (fluid)
2022-11-24Refactor code to make rounded rectangles accessible (#553)Matthias Melcher
This adds fl_rounded_rect and fl_rounded_rectf so the user can draw rounded rectangles. This uses existing and optimised code that is rearranged.
2022-11-24Check boundary conditions in Cocoa scroll code (#554)Matthias Melcher
2022-11-24FLUID: Fix update of formula input widgetsMatthias Melcher
2022-11-24README.Wayland.txt: list required packages besides those in README.Unix.txtManoloFLTK
2022-11-24Fixes some FLUID bugsMatthias Melcher
Fl_Flex would not change type when it had no children. Function evaluation could read past string end. Fl_Window_Type would not initialise all member variables.
2022-11-24OpenGL3 under macOS: simpler implementation of support of child widgetsManoloFLTK
2022-11-24CMake build for Wayland: check for presence of required GL-related softwareManoloFLTK
2022-11-24CMake building: improve messages about necessary software packagesManoloFLTK
2022-11-23CMake build for Wayland/X11 hybrid: check for libx???-dev packagesManoloFLTK
2022-11-23Restore build with HAVE_GL = 1 and HAVE_GL_GLU_H = 0ManoloFLTK
2022-11-23Configure-based build: control presence of GL-related packagesManoloFLTK
2022-11-23Update remaining "arrow drawing" in menusAlbrecht Schlosser
Use the new standard arrow drawing methods (whose style depends on the active scheme) for "arrows" used in Fl_Menu and Fl_Menu_Button. To do: maybe we need some "fine tuning" of arrow sizes in some of the modified widgets using the new "arrow drawing" methods.
2022-11-23Save and restore current color when drawing arrowsAlbrecht Schlosser
Make sure we don't change the current color after we finish drawing.
2022-11-23Fix border size of FL_PLASTIC_UP_BOXAlbrecht Schlosser
2022-11-23Fluid: Fix variable naming and a memory leakMatthias Melcher
2022-11-23Don't build libdecor demos, add generated files to .gitignoreAlbrecht Schlosser
1) We don't need to build the libdecor demo programs for FLTK. 2) The Wayland build process generates some source and header files in the main src/ directory. These files are now ignored by git.
2022-11-23Fix whitespace (trailing spaces)Albrecht Schlosser
2022-11-23Keep indicator that menubar is still active (#551)Matthias Melcher
2022-11-23Improve Fl_Cocoa_Gl_Window_Driver::switch_to_GL1() to support multiple GL3 ↵ManoloFLTK
windows