summaryrefslogtreecommitdiff
path: root/src/drivers/Unix
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/Unix')
-rw-r--r--src/drivers/Unix/Fl_Unix_System_Driver.H1
-rw-r--r--src/drivers/Unix/Fl_Unix_System_Driver.cxx4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/Unix/Fl_Unix_System_Driver.H b/src/drivers/Unix/Fl_Unix_System_Driver.H
index bf8a174d8..1d01ebffe 100644
--- a/src/drivers/Unix/Fl_Unix_System_Driver.H
+++ b/src/drivers/Unix/Fl_Unix_System_Driver.H
@@ -50,6 +50,7 @@ public:
virtual void *control_maximize_button(void *data);
static unsigned char *create_bmp(const unsigned char *data, int W, int H, int *return_size);
static Fl_RGB_Image *own_bmp_to_RGB(char *bmp);
+ static void read_int(uchar *c, int& i);
};
#endif /* FL_NIX_SYSTEM_DRIVER_H */
diff --git a/src/drivers/Unix/Fl_Unix_System_Driver.cxx b/src/drivers/Unix/Fl_Unix_System_Driver.cxx
index 3951e3eda..d956f04b1 100644
--- a/src/drivers/Unix/Fl_Unix_System_Driver.cxx
+++ b/src/drivers/Unix/Fl_Unix_System_Driver.cxx
@@ -2,7 +2,7 @@
// Definition of Unix/Linux system driver
// for the Fast Light Tool Kit (FLTK).
//
-// Copyright 2010-2021 by Bill Spitzak and others.
+// Copyright 2010-2022 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -924,7 +924,7 @@ unsigned char *Fl_Unix_System_Driver::create_bmp(const unsigned char *data, int
}
-static void read_int(uchar *c, int& i) {
+void Fl_Unix_System_Driver::read_int(uchar *c, int& i) {
i = *c;
i |= (*(++c))<<8;
i |= (*(++c))<<16;