From 7f8f7c5b851f4e15cf95c6e819bff284b7fda7ca Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 15 Nov 2022 10:09:01 +0100 Subject: Add support of .svgz image files to fluid The prototype of the public Fl_SVG_Image constructor is expanded to allow construction from in-memory, gzip'ed binary data. --- src/Fl_System_Driver.H | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Fl_System_Driver.H') diff --git a/src/Fl_System_Driver.H b/src/Fl_System_Driver.H index bba6c77ff..b1901b133 100644 --- a/src/Fl_System_Driver.H +++ b/src/Fl_System_Driver.H @@ -221,6 +221,12 @@ public: virtual void unlock_ring() {} virtual double wait(double); // must override virtual int ready() { return 0; } // must override + virtual int close_fd(int) {return -1;} // to close a file descriptor + // next 2 for support of Fl_SVG_Image + virtual int write_nonblocking_fd(int , const unsigned char *&, size_t &) {return 0;} + virtual void pipe_support(int &fdread, int &fdwrite, const unsigned char *, size_t ) { + fdread = fdwrite = -1; + } }; #endif // FL_SYSTEM_DRIVER_H -- cgit v1.2.3