mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
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:
parent
20d150a3b4
commit
576ec6e72e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue