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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5018>
This commit is contained in:
Nirbheek Chauhan 2023-07-12 12:46:17 +05:30 committed by GStreamer Marge Bot
parent 20d150a3b4
commit 576ec6e72e

View file

@ -142,7 +142,7 @@ on_draw (GstElement * overlay, GstD3D11Device * device,
do { do {
d2d_target->DrawTextLayout (D2D1::Point2F (position, context->origin_y), d2d_target->DrawTextLayout (D2D1::Point2F (position, context->origin_y),
context->layout, text_brush.Get (), context->layout, text_brush.Get (),
D2D1_DRAW_TEXT_OPTIONS_CLIP | D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT); static_cast<D2D1_DRAW_TEXT_OPTIONS>(D2D1_DRAW_TEXT_OPTIONS_CLIP | D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT));
position = position + context->text_width; position = position + context->text_width;
} while (position < context->width); } while (position < context->width);