summaryrefslogtreecommitdiff
path: root/src/fl_images_core.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-01-30 18:54:18 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-01-30 18:54:18 +0100
commit325c4b8666b16bfcb4458047d0d57a81b5456a70 (patch)
treea58669bf0fd96bfcd7f56042c8b443d3bc752a7a /src/fl_images_core.cxx
parentfbf20b7225ffc51a7d5d046330852762bab2c1b2 (diff)
New public static variable bool Fl_Image::register_images_done
Allows an app to detect whether fl_register_images() was called or not.
Diffstat (limited to 'src/fl_images_core.cxx')
-rw-r--r--src/fl_images_core.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fl_images_core.cxx b/src/fl_images_core.cxx
index 58fcd2e5f..d610fb8c4 100644
--- a/src/fl_images_core.cxx
+++ b/src/fl_images_core.cxx
@@ -57,6 +57,7 @@ static Fl_Image *fl_check_images(const char *name, uchar *header, int headerlen)
*/
void fl_register_images() {
Fl_Shared_Image::add_handler(fl_check_images);
+ Fl_Image::register_images_done = true;
}