mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-25 12:11:33 +08:00
windows.h defines DrawText and shadows the function Canvas.DrawText, fix based on the solution #70 (#394)
Co-authored-by: Sebastian Carrion Ständer <sebastian.carrion@tum.de>
This commit is contained in:
parent
bc206f85da
commit
09a2c077eb
@ -9,6 +9,12 @@
|
|||||||
#include "ftxui/screen/color.hpp" // for Color
|
#include "ftxui/screen/color.hpp" // for Color
|
||||||
#include "ftxui/screen/screen.hpp" // for Pixel
|
#include "ftxui/screen/screen.hpp" // for Pixel
|
||||||
|
|
||||||
|
#ifdef DrawText
|
||||||
|
// Workaround for WinUsr.h (via Windows.h) defining macros that break things.
|
||||||
|
// https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-drawtext
|
||||||
|
#undef DrawText
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace ftxui {
|
namespace ftxui {
|
||||||
|
|
||||||
struct Canvas {
|
struct Canvas {
|
||||||
|
Loading…
Reference in New Issue
Block a user