summaryrefslogtreecommitdiff
path: root/CMake/options.cmake
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-02-26 18:00:07 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2021-05-31 08:28:06 +0200
commitb027d2ba57a8e0d6f0862e0a891ddd5dee4b02e2 (patch)
tree3ed894bd9a891337804367a09de500ff060be640 /CMake/options.cmake
parentd95dd7acc4af3a4bd521d151ba3576b91d8ace53 (diff)
Windows platform: use GDI+ to antialias oblique lines and curves.
Diffstat (limited to 'CMake/options.cmake')
-rw-r--r--CMake/options.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake
index cf50da6b8..e9e7a1db0 100644
--- a/CMake/options.cmake
+++ b/CMake/options.cmake
@@ -52,6 +52,16 @@ if (UNIX)
list (APPEND FLTK_LDLIBS -lm)
endif (UNIX)
+if (WIN32)
+ option (OPTION_USE_GDIPLUS "use GDI+ when possible for antialiased graphics" ON)
+ if (OPTION_USE_GDIPLUS)
+ set (USE_GDIPLUS TRUE)
+ if (NOT MSVC)
+ list (APPEND FLTK_LDLIBS "-lgdiplus")
+ endif (NOT MSVC)
+ endif (OPTION_USE_GDIPLUS)
+endif (WIN32)
+
#######################################################################
if (APPLE)
option (OPTION_APPLE_X11 "use X11" OFF)