mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 10:38:09 +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:
		| @@ -9,6 +9,12 @@ | ||||
| #include "ftxui/screen/color.hpp"   // for Color | ||||
| #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 { | ||||
|  | ||||
| struct Canvas { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 SColibri
					SColibri