diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-02-13 12:24:27 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-02-13 12:24:27 +0100 |
| commit | 9958016a47346c2b9e27209e56368fe92b651697 (patch) | |
| tree | a78a8a148ed9ce8633bc719ecf8a56fc1f21b7c1 /src | |
| parent | f459fdb6374a81a7ebb2fdc95e6dd7ec7041c3ec (diff) | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/WinAPI/fl_WinAPI_platform_init.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
