vlc | branch: master | Steve Lhomme <[email protected]> | Mon Apr 15 14:30:05 2019 +0200| [3c2fd66d63fdf3680f7449d905b65ffd0b20abc1] | committer: Steve Lhomme
vout:win32: use the area from DISPLAY_SIZE to get the external display size area->vdcfg is always set to the display size received from the core. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3c2fd66d63fdf3680f7449d905b65ffd0b20abc1 --- modules/video_output/win32/common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c index 9fc680dbc3..1b34b2e41a 100644 --- a/modules/video_output/win32/common.c +++ b/modules/video_output/win32/common.c @@ -46,9 +46,9 @@ static bool GetExternalDimensions(void *opaque, UINT *width, UINT *height) { - const vout_display_t *vd = opaque; - *width = vd->source.i_visible_width; - *height = vd->source.i_visible_height; + const display_win32_area_t *area = opaque; + *width = area->vdcfg.display.width; + *height = area->vdcfg.display.height; return true; } @@ -56,7 +56,7 @@ void InitArea(vout_display_t *vd, display_win32_area_t *area, const vout_display { area->place_changed = false; area->pf_GetDisplayDimensions = GetExternalDimensions; - area->opaque_dimensions = vd; + area->opaque_dimensions = area; area->vdcfg = *vdcfg; area->texture_source = vd->source; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
