From 576ec6e72e983e4b772702d292c2e7cf1abb1774 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 12 Jul 2023 12:46:17 +0530 Subject: [PATCH] d3d11: Fix build on MSYS2 GCC ``` ../subprojects/gst-plugins-bad/tests/examples/d3d11/d3d11overlay.cpp:145:37: error: invalid conversion from 'unsigned int' to 'D2D1_DRAW_TEXT_OPTIONS' [-fpermissive] 145 | D2D1_DRAW_TEXT_OPTIONS_CLIP | D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | unsigned int ``` Part-of: --- .../gst-plugins-bad/tests/examples/d3d11/d3d11overlay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/tests/examples/d3d11/d3d11overlay.cpp b/subprojects/gst-plugins-bad/tests/examples/d3d11/d3d11overlay.cpp index ba36b9bb84..7cb3804591 100644 --- a/subprojects/gst-plugins-bad/tests/examples/d3d11/d3d11overlay.cpp +++ b/subprojects/gst-plugins-bad/tests/examples/d3d11/d3d11overlay.cpp @@ -142,7 +142,7 @@ on_draw (GstElement * overlay, GstD3D11Device * device, do { d2d_target->DrawTextLayout (D2D1::Point2F (position, context->origin_y), context->layout, text_brush.Get (), - D2D1_DRAW_TEXT_OPTIONS_CLIP | D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT); + static_cast(D2D1_DRAW_TEXT_OPTIONS_CLIP | D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT)); position = position + context->text_width; } while (position < context->width);