diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-02-26 18:00:07 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-05-31 08:28:06 +0200 |
| commit | b027d2ba57a8e0d6f0862e0a891ddd5dee4b02e2 (patch) | |
| tree | 3ed894bd9a891337804367a09de500ff060be640 /configure.ac | |
| parent | d95dd7acc4af3a4bd521d151ba3576b91d8ace53 (diff) | |
Windows platform: use GDI+ to antialias oblique lines and curves.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 9e36e685b..13dfe68f6 100644 --- a/configure.ac +++ b/configure.ac @@ -137,6 +137,21 @@ AC_ARG_ENABLE([xinerama], AS_HELP_STRING([--disable-xinerama], [turn off Xineram AC_ARG_ENABLE([xrender], AS_HELP_STRING([--disable-xrender], [turn off Xrender support])) +AS_CASE([$host_os], [cygwin* | mingw*], [ + AC_ARG_ENABLE([gdiplus], AS_HELP_STRING([--disable-gdiplus], [don't use GDI+ for antialiased graphics])) + + gdiplus_found=no + AS_IF([test x$enable_gdiplus != xno], [ + AC_CHECK_HEADERS([wtypes.h gdiplus.h], [ + AC_DEFINE([USE_GDIPLUS]) + LIBS="-lgdiplus $LIBS" + gdiplus_found=yes + ], [], + [[#include <wtypes.h>]]) + ]) + +]) + AS_IF([test x$enable_pango = xyes -a x$enable_xft = xno], [ AC_MSG_ERROR([--disable-xft and --enable-pango are incompatible because Xft is necessary for Pango.]) ]) @@ -887,6 +902,7 @@ AS_CASE([$host_os_gui], [cygwin* | mingw*], [ LDFLAGS="-mwindows $LDFLAGS" DSOFLAGS="-mwindows $DSOFLAGS" LIBS="$LIBS -lole32 -luuid -lcomctl32 -lws2_32" + BUILD="WIN" AS_IF([test "x$with_optim" = x], [ dnl Avoid -Os optimization on Cygwin/MinGW @@ -1522,7 +1538,7 @@ echo "Configuration Summary" echo "-------------------------------------------------------------------------" AS_CASE([$host_os_gui], [cygwin* | mingw*], [ - graphics="GDI" + AS_IF([test x$gdiplus_found = xyes], [graphics="GDI+"], [graphics="GDI"]) ], [darwin*], [ graphics="Quartz" ], [*], [ |
