summaryrefslogtreecommitdiff
path: root/src/Fl_Window_Driver.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-09-25 19:33:22 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-09-25 19:33:22 +0200
commitbc0d18c1bb6ce205f034161ea7816638b5d7f5b7 (patch)
treede949877cd3e56856da658f88cf445457c60a257 /src/Fl_Window_Driver.cxx
parent0f12e96d138af1ea1fa371b858ee2094401621b7 (diff)
Enable error and EOF check in class Fl_Image_Reader (#271)
This is part 1 and a prerequisite for the fix of issue #271. It enables the user of this internal class (Fl_{BMP|GIF}_Image) to test for read errors and EOF (end of file) while reading. The method used to read data from memory got an optional third argument 'const long datasize = -1)' to limit the size of the memory block of data provided to the image reader. Default is -1 which means "unlimited" (backwards compatibility). Using only two arguments (w/o size limit) is deprecated and should only be done if the data size is not available.
Diffstat (limited to 'src/Fl_Window_Driver.cxx')
0 files changed, 0 insertions, 0 deletions