From 3533b970921e3ee43e51c7fb8488cf2b120480f0 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Tue, 4 Jun 2019 08:45:39 +0800 Subject: [PATCH] XFT code incorrectly enabled under Windows --- source/paint/detail/native_paint_interface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/paint/detail/native_paint_interface.cpp b/source/paint/detail/native_paint_interface.cpp index c31a27d7..db01ea30 100644 --- a/source/paint/detail/native_paint_interface.cpp +++ b/source/paint/detail/native_paint_interface.cpp @@ -24,11 +24,13 @@ namespace nana { +#ifdef NANA_USE_XFT //Forward-declarations //These names are defined platform_abstraction.cpp class font_interface; void nana_xft_draw_string(::XftDraw* xftdraw, ::XftColor* xftcolor, font_interface* ft, const nana::point& pos, const wchar_t * str, std::size_t len); nana::size nana_xft_extents(font_interface* ft, const wchar_t* str, std::size_t len); +#endif namespace paint {