summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-05-07Suppress Visual Studio warnings in nanosvg codeAlbrecht Schlosser
- disable warning C4244 (conversion / data loss) - restore #pragma warning after nanosvg includes
2021-05-07Fix MSVC 2010 and older not finding round()Albrecht Schlosser
Actually we don't know about some newer MSVC versions, but current version MSVC 2019 works fine w/o defining round(). If other MSVC versions need this as well we can change the version test or add a compiler feature test to CMake (configure not required).
2021-05-06Fix Windows (Visual Studio) compiler warningsAlbrecht Schlosser
2021-05-03Fix compiler warning on macOSAlbrecht Schlosser
Compiling drivers/Posix/Fl_Posix_System_Driver.cxx... drivers/Posix/Fl_Posix_System_Driver.cxx:176:14: warning: unused function 'quadruple_dlopen' [-Wunused-function]
2021-04-29Cleaner access to Fl_Gl_Window_Driver objects.ManoloFLTK
2021-04-28Fix "Fl_Shared_Image: use of unitialized data" (#216)Albrecht Schlosser
- fix issue as proposed - fix more potential access to uninitialized data issues - document Fl_Shared_Image::add_handler() - document typedef Fl_Shared_Image::Fl_Shared_Handler()
2021-04-27Slightly simplify gl_texture_fifo::compute_texture()ManoloFLTK
The font size is set to the value necessary for the GL scene before computing the string width. Virtual Fl_Gl_Window_Driver::effective_size() becomes unnecessary.
2021-04-26Avoid "Bogus FL_MOVE/FL_DRAG events" (#76)Albrecht Schlosser
Fix sending bogus events if CONSOLIDATE_MOTION is on.
2021-04-16Fix potential buffer overrun (WIN32 only)Albrecht Schlosser
2021-04-16Minor simplification in Fl_Gl_Window_Driver::capture_gl_rectangle()ManoloFLTK
2021-04-14Fix Fl_Cairo_Graphics_Driver::rect and Fl_Cairo_Graphics_Driver::rectfManoloFLTK
2021-04-13Update Fl_WinAPI_Window_Driver.HDaniel G
Fix copy paste error.
2021-04-07Make Fl_Input::handle_key() protected (#203)Albrecht Schlosser
... as requested in this comment: https://github.com/fltk/fltk/issues/211#issuecomment-814235771
2021-04-07Remove static variable, fix gcc warning [-Wclobbered] (#203)Albrecht Schlosser
PR #203 "Multithread fix for PNG loading" includes a suggested fix that moves the variable fp to the Fl_PNG_Image structure. This commit fixes the threading issue by allocating the variable fp with new, avoiding the [-Wclobbered] warning w/o using a static var. The same issue is now also fixed in Fl_JPEG_Image.
2021-04-04Fix for issue #209: Gtk-CRITICAL messages from native file chooserManoloFLTK
Thanks to K.R. for the fix.
2021-03-31Move the X11-specific part of GTK native file chooser to Fl_X11_System_DriverManoloFLTK
2021-03-31Fl_X11_System_Driver::probe_for_GTK() is now ↵ManoloFLTK
Fl_Posix_System_Driver::probe_for_GTK()
2021-03-31Move quadruple_dlopen() to Fl_Posix_System_Driver.cxx where it's used.ManoloFLTK
2021-03-31Move probe_for_GTK() to class Fl_Posix_System_Driver from Fl_X11_System_Driver.ManoloFLTK
Similarly move dlopen_or_dlsym(). This move is because GTK is not X11-specific.
2021-03-27Add guard against multiple inclusion of header file.ManoloFLTK
2021-03-26Remove X11-specific code from platform-independent Fl_PostScript.cxxManoloFLTK
2021-03-23Better fix for issue #206.Greg Ercolano
Albrecht caught a problem with my strncat use (see comments for 12d8da9c). I noticed we have fl_strlcpy() and fl_strlcat() which is what was really needed here.
2021-03-23Solve issue #206 warning.Greg Ercolano
2021-03-23Optimization for pixel loop.Greg Ercolano
As per erco's comments on fltk.coredev, Mar 21 2021 in thread Subject: Re: 1.4 build failing on OSX for me
2021-03-22Remove unused #include statementsAlbrecht Schlosser
Cairo is not used in this file, math.h is not necessary, and stdio.h is only required if USE_PANGO is false.
2021-03-22Solve issue #204, wrong default for labelfgcolor()Greg Ercolano
FL_BLACK changed to FL_FOREGROUND_COLOR as per docs.
2021-03-22Add missing include file stdlib.h for abs(int)Albrecht Schlosser
This file was included (in math.h or elsewhere) on Linux and latest macOS versions but maybe not in earlier macOS versions or with other configuration options.
2021-03-21Windows: fix fl_filename_isdir()Albrecht Schlosser
- convert filename from UTF-8 to "Windows wide chars" - use GetFileAttributesW() instead of _stat()
2021-03-21Remove unnecessary system includes from public headersAlbrecht Schlosser
Add includes of system headers in the implementation files where necessary.
2021-03-19Added docs for public fl_vsnprintf() (STR #3413)Greg Ercolano
Applied vsnprintf_v2.patch from STR#3413 which documents the previously undocumented function, so that it shows up here in the doxygen docs: Files -> File List -> vsnprintf.c -> fl_vsnprintf() This commit does not solve STR #3413, just adds the recommended documentation for fl_vsnprintf(). Other functions in src/vsnprintf.c could use docs too. See the bottom of comment #5 in the STR for recommendations to fully solve.
2021-03-18Fix stack corruption when loading GIFfire-eggs
2021-03-15Partial fix for issue #188.ManoloFLTK
This fixes the inconsistency created by the possibility to change img->w() and img->h() values. The fix is to use img->data_w() and img->data_h() that have constant values.
2021-03-15Fix Linux build with --enable-pangoAlbrecht Schlosser
2021-03-15Create class Fl_Cairo_Graphics_Driver.ManoloFLTK
That class is extracted from inside Fl_PostScript_Graphics_Driver and might become handy in the future.
2021-03-15Class Fl_PostScript_Graphics_Driver: better separation of what varies with ↵ManoloFLTK
USE_PANGO
2021-03-13Fix fl_endpoints() for macOS platform that was not effective.ManoloFLTK
2021-03-13Fast pango (#201)ManoloFLTK
* Cache single unicode character widths under Xft+Pango
2021-03-11Unification of scaled coordinate calculations in class ↵ManoloFLTK
Fl_Scalable_Graphics_Driver Most coordinate calculations are done with the new inline function int Fl_Scalable_Graphics_Driver::floor(int coord) that is used by both the Windows and X11 platforms.
2021-03-02Windows platform: accurate drawing area of RGB images with scaled GUI.ManoloFLTK
2021-03-02X11 platform: Accurately control RGB image drawing with GUI scaling.ManoloFLTK
2021-03-01Remove duplicated code between derived classes of Fl_Graphics_Driver - cont'd.ManoloFLTK
2021-03-01Remove duplicated code between derived classes of Fl_Graphics_Driver.ManoloFLTK
2021-03-01Remove warnings about hidden virtual member functions.ManoloFLTK
2021-03-01Fix cairo build (autoconf + CMake) + README'sAlbrecht Schlosser
- rewrite to use pkg-config with both autoconf + CMake - remove hardcoded library names - fix build dependencies and search directories - remove or replace old and unused variables - update README files To be done: - implement fallback for autoconf/configure if pkg-config is missing - fix pango build (uses cairo internally)
2021-02-27Update dependenciesAlbrecht Schlosser
2021-02-27Remove config_lib.h and runtime configuration infoAlbrecht Schlosser
... as discussed in fltk.coredev.
2021-02-27Rename fl_remove_scale() to fl_override_scale() as discussed in fltk.generalManoloFLTK
Re: Can custom box type functions handle their own high-DPI screen scaling?
2021-02-25Fix Doxygen docs (unescaped '$')Albrecht Schlosser
2021-02-25Add fl_remove_scale()/fl_restore_scale() to transiently draw without scaling ↵ManoloFLTK
factor. This new API is a response to this message in fltk.general : Can custom box type functions handle their own high-DPI screen scaling?
2021-02-24Improve precision of GUI scaling for Windows platform.ManoloFLTK