summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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.
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-28Doc: repeat that screens are numbered starting from 0 in the APIManoloFLTK
2022-11-27Fix forgotten name changeMatthias Melcher
2022-11-27macOS+OpenGL3: remove "warning: gl.h and gl3.h are both included"ManoloFLTK
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-26Handle Fluid project settings better (#556)Matthias Melcher
Fix allocation bug in Fl_String
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-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-24OpenGL3 under macOS: simpler implementation of support of child widgetsManoloFLTK
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