From 9958016a47346c2b9e27209e56368fe92b651697 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 13 Feb 2023 12:24:27 +0100 Subject: Windows: minor change to support build with mingw64 4.9 This old compiler is available as a cross compiler from macOS to 64-bit Windows. --- src/drivers/WinAPI/fl_WinAPI_platform_init.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/WinAPI') diff --git a/src/drivers/WinAPI/fl_WinAPI_platform_init.cxx b/src/drivers/WinAPI/fl_WinAPI_platform_init.cxx index 5f3ba4ec4..fa6b41d24 100644 --- a/src/drivers/WinAPI/fl_WinAPI_platform_init.cxx +++ b/src/drivers/WinAPI/fl_WinAPI_platform_init.cxx @@ -37,7 +37,7 @@ Fl_Graphics_Driver *Fl_Graphics_Driver::newMainGraphicsDriver() if (Fl_GDIplus_Graphics_Driver::gdiplus_state_ == Fl_GDIplus_Graphics_Driver::STATE_CLOSED) { Fl_GDIplus_Graphics_Driver::gdiplus_state_ = Fl_GDIplus_Graphics_Driver::STATE_STARTUP; Gdiplus::Status ret = GdiplusStartup(&Fl_GDIplus_Graphics_Driver::gdiplus_token_, &gdiplusStartupInput, NULL); - if (ret == Gdiplus::Status::Ok) { + if (ret == 0) { // 0 is same as Gdiplus::Status::Ok, but old mingw64 barks at that Fl_GDIplus_Graphics_Driver::gdiplus_state_ = Fl_GDIplus_Graphics_Driver::STATE_OPEN; } else { Fl::warning("GdiplusStartup failed with error code %d.", ret); -- cgit v1.2.3