ManoloFLTK
4e086a1cdf
Merge remote-tracking branch 'refs/remotes/origin/master'
4 years ago
ManoloFLTK
f8d1b83a0e
Fix for issue #209 : Gtk-CRITICAL messages from native file chooser
...
Thanks to K.R. for the fix.
4 years ago
Albrecht Schlosser
278adc097c
Fix "Gtk-CRITICAL messages from native file chooser" ( #209 )
...
See GitHub Issue #209 : https://github.com/fltk/fltk/issues/209
Warning was: "Gtk-CRITICAL **: ... gtk_widget_set_sensitive: assertion 'GTK_IS_WIDGET (widget)' failed
Close #209
4 years ago
ManoloFLTK
30725faf0a
Move the X11-specific part of GTK native file chooser to Fl_X11_System_Driver
4 years ago
ManoloFLTK
2a6e9d9493
Fl_X11_System_Driver::probe_for_GTK() is now Fl_Posix_System_Driver::probe_for_GTK()
4 years ago
ManoloFLTK
778a4577d4
Move quadruple_dlopen() to Fl_Posix_System_Driver.cxx where it's used.
4 years ago
ManoloFLTK
ba03dde15c
Move probe_for_GTK() to class Fl_Posix_System_Driver from Fl_X11_System_Driver.
...
Similarly move dlopen_or_dlsym().
This move is because GTK is not X11-specific.
4 years ago
ManoloFLTK
ef41409759
Add guard against multiple inclusion of header file.
4 years ago
ManoloFLTK
4657e988f7
Remove X11-specific code from platform-independent Fl_PostScript.cxx
4 years ago
Greg Ercolano
4951fd1801
Better fix for issue #206 .
...
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.
4 years ago
Greg Ercolano
12d8da9cb6
Solve issue #206 warning.
4 years ago
Greg Ercolano
8a9e25cdac
Optimization for pixel loop.
...
As per erco's comments on fltk.coredev, Mar 21 2021
in thread Subject: Re: 1.4 build failing on OSX for me
4 years ago
Albrecht Schlosser
5fb6713485
Remove unused #include statements
...
Cairo is not used in this file, math.h is not necessary, and stdio.h
is only required if USE_PANGO is false.
4 years ago
Greg Ercolano
d6d1d8afe4
Solve issue #204 , wrong default for labelfgcolor()
...
FL_BLACK changed to FL_FOREGROUND_COLOR as per docs.
4 years ago
Albrecht Schlosser
62ff323b70
Add missing include file stdlib.h for abs(int)
...
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.
4 years ago
Albrecht Schlosser
edfe684419
Windows: fix fl_filename_isdir()
...
- convert filename from UTF-8 to "Windows wide chars"
- use GetFileAttributesW() instead of _stat()
4 years ago
Albrecht Schlosser
8d26d5ed4b
Hide window in quit callback in wizard-simple example
4 years ago
Albrecht Schlosser
90dbf0c77d
Fix menu-with-images example w/o using exit()
...
Use window->hide() in quit callback instead.
4 years ago
Albrecht Schlosser
41266df7ae
Remove unnecessary system includes from public headers
...
Add includes of system headers in the implementation files
where necessary.
4 years ago
Greg Ercolano
bd52db0b95
Added docs for public fl_vsnprintf() (STR #3413 )
...
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.
4 years ago
Albrecht Schlosser
edd52ca1e8
Add fluid callback demo program to examples folder
...
This example demonstrates how to build an entire program using fluid
and how to add static and virtual class methods as callbacks.
4 years ago
Greg Ercolano
19ae897553
Added chart-simple example
4 years ago
fire-eggs
0688c77c33
Fix stack corruption when loading GIF
4 years ago
ManoloFLTK
a4866ffc21
Partial fix for issue #188 .
...
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.
4 years ago
Albrecht Schlosser
a620ef5b37
Fix Linux build with --enable-pango
4 years ago
ManoloFLTK
1fbcae13bd
Create class Fl_Cairo_Graphics_Driver.
...
That class is extracted from inside Fl_PostScript_Graphics_Driver and might
become handy in the future.
4 years ago
ManoloFLTK
a3cb4af739
Class Fl_PostScript_Graphics_Driver: better separation of what varies with USE_PANGO
4 years ago
ManoloFLTK
ce142e80df
Fix fl_endpoints() for macOS platform that was not effective.
4 years ago
ManoloFLTK
368f18016c
Fast pango ( #201 )
...
* Cache single unicode character widths under Xft+Pango
4 years ago
ManoloFLTK
569fec25e0
Unification of scaled coordinate calculations in class 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.
4 years ago
Albrecht Schlosser
bd6c985434
Improve Fl_Help_View test file
...
- add DOCTYPE, <head> and <body> statements
- make the file more standards conformant
- update OL tests, add nested OL/UL test
- add 'alt' tags to image refs
Note: the 'NAME' tag is obsolete and should be replaced with 'ID'
but Fl_Help_View does not parse 'ID' tags (yet).
4 years ago
Albrecht Schlosser
e25907c830
autoconf: fix PNG build
...
configure didn't export HAVE_PNG_H and HAVE_LIBPNG_H to config.h
4 years ago
ManoloFLTK
e19bfc0d8f
Windows platform: accurate drawing area of RGB images with scaled GUI.
4 years ago
ManoloFLTK
42aa31b900
X11 platform: Accurately control RGB image drawing with GUI scaling.
4 years ago
ManoloFLTK
b771ee53b9
Remove duplicated code between derived classes of Fl_Graphics_Driver - cont'd.
4 years ago
ManoloFLTK
0623a8d4b9
Remove duplicated code between derived classes of Fl_Graphics_Driver.
4 years ago
Albrecht Schlosser
37175d1757
macOS: add resize-example apps to .gitignore
4 years ago
ManoloFLTK
81a4b7329c
Remove warnings about hidden virtual member functions.
4 years ago
Albrecht Schlosser
49a78bc482
Fix cairo build (autoconf + CMake) + README's
...
- 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)
4 years ago
Albrecht Schlosser
266b5e7cdd
Fix CMake warning related to CMP0072
4 years ago
Albrecht Schlosser
ae41dc46b9
Update dependencies
4 years ago
Albrecht Schlosser
08d9b3e10d
Remove config_lib.h and runtime configuration info
...
... as discussed in fltk.coredev.
4 years ago
ManoloFLTK
c83490fe30
Rename forgotten occurrence of fl_remove_scale() in Doxygen data.
4 years ago
ManoloFLTK
88a3f7b7be
Rename fl_remove_scale() to fl_override_scale() as discussed in fltk.general
...
Re: Can custom box type functions handle their own high-DPI screen scaling?
4 years ago
Albrecht Schlosser
5c1b69cd4f
Fix Doxygen docs (unescaped '$')
4 years ago
Albrecht Schlosser
52e16fb1be
Update bundled libs to current versions
...
- update README.bundled-libs.txt + some comments
- update bundled jpeg lib from version 9c to 9d
All bundled libs are now up-to-date. For current update status
please see README.bundled-libs.txt.
4 years ago
ManoloFLTK
5bd467fa17
Add fl_remove_scale()/fl_restore_scale() to transiently draw without scaling 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?
4 years ago
ManoloFLTK
bef46b5cb8
Improve precision of GUI scaling for Windows platform.
4 years ago
Albrecht Schlosser
9f84fd05e8
Update bundled nanosvg library to latest version
...
For details see:
- README.bundled-libs.txt
- nanosvg/README.txt
4 years ago
ManoloFLTK
28aaa4d4ce
Simplify source code of Fl_GDI_Graphics_Driver::draw_rgb(Fl_RGB_Image *,…)
4 years ago