summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-09-09Fix nanosvg implementation of nsvg__atof() to allow compilation with Visual ↵Manolo Gouy
Studio 7. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12435 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-09#include <locale.h> is no longer needed.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12434 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-09Make virtual member function Fl_Image::draw_scaled(int X, int Y, int W, int ↵Manolo Gouy
H) protected rather than private. Consequently, remove the trailing _ from its name reserved for private class members. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12433 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-07Modify nanosvg.h to support compilation by Visual Studio 7.Manolo Gouy
This is a new implementation that does not tamper with the program's locale. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12431 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-06Simplify code using plain atof() instead of implementing function nsvg__atof().Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12430 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-06Modify how the nanosvg source code is used to support compilation with ↵Manolo Gouy
Visual Studio 7. 1) The original nanosvg.h file is modified for FLTK in file fl_nanosvg.h. The only change is to remove the implementation of function nsvg__atof(). 2) FLTK provides an implementation of nsvg__atof() based on sscanf(). 3) FLTK changes the LC_NUMERIC locale to "C" before calling nanosvg and resets it to its previous state after. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12423 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-04Improve doc of the Fl_SVG_Image public constructor.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12420 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-04Fix erroneous Doxygen command in doc of Fl_SVG_Image::resize().Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12418 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-04Class Fl_SVG_Image: use fl_fopen() to open files with non-ASCII characters ↵Manolo Gouy
in name. Also, have copy() copy the value of the image's proportional member variable. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12417 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-03Set svn:keywordsManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12415 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-03Add new Fl_SVG_Image class to support scalable vector graphics images using ↵Manolo Gouy
the (modified) nanosvg software. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12413 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-30Create virtual Fl_Image::draw_scaled_(int X, int Y, int W, int H) and its ↵Manolo Gouy
implementations for image classes. This allows to use the virtual function mechanism to adapt scaled image drawing both to the image type and the graphics driver type. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12410 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-30Modify Fl_Shared_Image::scale(int, int) for the case of an erroneous image ↵Manolo Gouy
object. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12409 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-30Move Fl_Graphics_Driver::draw(Fl_Shared_Image* from Fl_Shared_Image.cxx to ↵Manolo Gouy
Fl_Graphics_Driver.cxx where it belongs. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12408 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-30Improve Doxygen comments related to image drawingManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12407 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-27Fix for STR#3397: find adequate X font to use it with GL.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12404 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-26Fl_WinAPI_Window_Driver::capture_titlebar_and_borders(): remove a few ↵Manolo Gouy
unnecessary statements. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12402 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-26WIN32: allow to change the active drawing surface between Fl_Display_Device ↵Manolo Gouy
and Fl_Image_Surface and keep the clipping region correct. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12401 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-25Fl_Scalable_Graphics_Driver::draw(Fl_RGB_Image *,...) : change how the ↵Manolo Gouy
current scaling factor is taken into account. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12400 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-25X11 and WIN32: slightly change Fl_XXX_Graphics_Driver::cache(Fl_Pixmap*) to ↵Manolo Gouy
use the Fl_Image_Surface object. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12399 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-25X11+xft-pango: have Fl::set_fonts() show fonts with black, light, medium, ↵Manolo Gouy
demi bold, oblique styles. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12398 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-25WIN32: have Fl_win32.cxx #include "config_lib.h"Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12397 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-24X11 platform: cleaner implementation of changing the active drawing surface ↵Manolo Gouy
and maintaining clip regions. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12396 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-20Simplify using Fl_XXX_Graphics_Driver::copy_offscreen() instead of ↵Manolo Gouy
Fl_Scalable_Graphics_Driver::copy_offscreen_unscaled() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12395 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-20Remove undesirable statement.Manolo Gouy
A bug was visible in test/unittests when moving between lines and rectangles. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12394 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-19Prevent situation where SetProcessDPIAwareness was called after ↵Manolo Gouy
Fl_WinAPI_Screen_Driver::init(). The effect was that the file_chooser test app did not recognize the window scaling factor. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12393 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-18Remove unnecessary #include files from Fl_Help_View.HAlbrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12392 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-18Update dependencies.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-18Avoid #include's of unrelated system headers in Fl_Table*.H.Albrecht Schlosser
Possible side effect: programs that relied upon inclusion of unrelated system headers by FL/Fl_Table.H or FL/Fl_Table_Row.H may fail to compile. Removed include files (some only on certain platforms, list may be incomplete): #include <FL/Fl.H> // moved to implementation (.cxx) #include <FL/Fl_Box.H> // moved to implementation (.cxx) #include <FL/Fl_Scrollbar.H> // moved to implementation (.cxx) #include <sys/types.h> #include <string.h> // memcpy #include <malloc.h> // WINDOWS only: malloc/realloc #include <stdlib.h> // UNIX: malloc/realloc git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12390 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-16class Fl_GDI_Image_Surface_Driver: remove member variable 'previous' that is ↵Manolo Gouy
useless. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12388 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-15Add missing #include "config_lib.h" in Fl.cxx.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-15Complete previous commit at r.12383 that was partial.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12384 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-15Fl_XXX_Surface_Driver::set_current() : call Fl_Surface_Device::set_current() ↵Manolo Gouy
first to get fl_window right. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12383 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-15Remove _sgc private member of Fl_GDI_Image_Surface_Driver that is not necessary.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12382 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-14Remove unnecessary #include statements and compilation guards.Albrecht Schlosser
Currently src/drivers/OpenGL/Fl_OpenGL_Graphics_Driver.cxx wouldn't contribute any code to the lib, but it is kept for future extensions. This file is no longer compiled (see src/CMakeLists.txt and src/Makefile). Tested (only) under Windows and Linux. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12381 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-14Make 'driver' header include guards more standard.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12380 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-14Remove unnecessary #include statement.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12379 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-13Fl_Xlib_Graphics_Driver::set_fonts() with Pango: handle case when 'Regular' ↵Manolo Gouy
is not alone in face name. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-13Fl_Xlib_Graphics_Driver::set_fonts() with Pango: account better for variety ↵Manolo Gouy
of possible font styles. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12377 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-12Fix error: invalid conversion from ‘const char*’ to ‘char*’ ↵Manolo Gouy
[-fpermissive] git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12376 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-12Improve Fl_Xlib_Graphics_Driver::set_fonts() when using Pango to build ↵Manolo Gouy
standard FLTK font names prefixed with I,B, or P. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12375 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-05Strenghten Fl_WinAPI_System_Driver::paste(): the widget's handle method may ↵Manolo Gouy
change Fl::e_text. The widget's handle method may change the value of Fl::e_text. This occurs for instance if this method calls fl_choice(). So, memorize the value of Fl::e_text before, to delete the correct array after the call to the handle method. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12371 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-05Fix compiler warning [-Wunused-result].Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12370 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-31Improve Fl_Widget_Surface::print_window_part() with better quality when ↵Manolo Gouy
scaling factor > 1. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12368 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-30Improve rescaling when window moved across screens: make sure center stays ↵Manolo Gouy
on new screen. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12367 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-30Fix Fl_Widget_Surface::print_window_part() that was not correct for scaling ↵Manolo Gouy
factor values < 1. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12366 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-29Fix Fl_Screen_Driver::read_image() that was not correct with scaling factor < 1.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12365 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-28Replace static protected bool Fl_Window_Driver::is_a_rescale by a private ↵Manolo Gouy
static variable and a public getter. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12364 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-28Fix Fl_Native_File_Chooser::filter_value()Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-28Rewrite Fl_X11_Window_Driver::resize_after_screen_change() to call ↵Manolo Gouy
Fl_Window_Driver::resize_after_scale_change() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121