Skip to content
Snippets Groups Projects
Commit 9cf4d39b authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf
Browse files

xcb/render: fix SPU area width/height

dw/dh represent width/height. The shift should not be used.
parent 5412294f
No related branches found
No related tags found
1 merge request!5092xcb/render: fix SPU area width/height
Pipeline #450857 passed with stage
in 28 minutes and 41 seconds
......@@ -166,9 +166,9 @@ static void RenderRegion(vout_display_t *vd, const vlc_render_subpicture *subpic
/ subpic->i_original_picture_width;
int_fast16_t dy = place->y + reg->place.y * place->height
/ subpic->i_original_picture_height;
uint_fast16_t dw = (reg->place.x + reg->place.width) * place->width
uint_fast16_t dw = (reg->place.width) * place->width
/ subpic->i_original_picture_width;
uint_fast16_t dh = (reg->place.y + reg->place.height) * place->height
uint_fast16_t dh = (reg->place.height) * place->height
/ subpic->i_original_picture_height;
xcb_render_composite(conn, XCB_RENDER_PICT_OP_OVER,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment