summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/version.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/version.cc b/src/version.cc
index 44b894e5..88031d19 100644
--- a/src/version.cc
+++ b/src/version.cc
@@ -39,7 +39,9 @@ static void print_libs()
/* FLTK only offers a single number */
{
#if FL_MAJOR_VERSION == 1 && FL_MINOR_VERSION == 3 && FL_PATCH_VERSION <= 3
- int fltkver = Fl::version();
+ /* The version comes in a double like this 1.0302 (1.3.3), so we
+ * transform it to a integer as Fl::api_version(): 1.0303 -> 10303 */
+ int fltkver = (int) (Fl::version() * 10000.0);
#else
int fltkver = Fl::api_version();
#endif