[vlc-commits] glwin32: use the full window size for the rendering area
Steve Lhomme
git at videolan.org
Tue Apr 30 11:13:46 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Apr 17 09:53:05 2019 +0200| [89b9219a7da6e64833f33489715de88b5c535e95] | committer: Steve Lhomme
glwin32: use the full window size for the rendering area
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=89b9219a7da6e64833f33489715de88b5c535e95
---
modules/video_output/win32/glwin32.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/win32/glwin32.c b/modules/video_output/win32/glwin32.c
index 3626d056d6..d3a7755cab 100644
--- a/modules/video_output/win32/glwin32.c
+++ b/modules/video_output/win32/glwin32.c
@@ -124,7 +124,7 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
/* */
InitArea(vd, &sys->area, cfg);
if (CommonInit(VLC_OBJECT(vd), &sys->area, &sys->sys,
- vd->source.projection_mode != PROJECTION_MODE_RECTANGULAR, false))
+ vd->source.projection_mode != PROJECTION_MODE_RECTANGULAR, true))
goto error;
if (vd->source.projection_mode != PROJECTION_MODE_RECTANGULAR)
@@ -227,7 +227,7 @@ static void Prepare(vout_display_t *vd, picture_t *picture, subpicture_t *subpic
if (vlc_gl_MakeCurrent (sys->gl) != VLC_SUCCESS)
return;
vout_display_opengl_SetWindowAspectRatio(sys->vgl, (float)width / height);
- vout_display_opengl_Viewport(sys->vgl, 0, 0, width, height);
+ vout_display_opengl_Viewport(sys->vgl, sys->area.place.x, sys->area.place.y, width, height);
vout_display_opengl_Prepare (sys->vgl, picture, subpicture);
vlc_gl_ReleaseCurrent (sys->gl);
}
More information about the vlc-commits
mailing list