[vlc-commits] [Git][videolan/vlc][master] xcb/render: fix SPU area width/height

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Mar 21 10:58:29 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
9cf4d39b by Steve Lhomme at 2024-03-21T10:30:47+00:00
xcb/render: fix SPU area width/height

dw/dh represent width/height. The shift should not be used.

- - - - -


1 changed file:

- modules/video_output/xcb/render.c


Changes:

=====================================
modules/video_output/xcb/render.c
=====================================
@@ -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,



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9cf4d39b02aa289a1e4912030adaacc9dccaed4c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9cf4d39b02aa289a1e4912030adaacc9dccaed4c
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list