Skip to content
Snippets Groups Projects
Commit 94574a22 authored by Victorien Le Couviour--Tuffet's avatar Victorien Le Couviour--Tuffet Committed by Jean-Baptiste Kempf
Browse files

caopengllayer: correct vertical alignment


Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c09f4822
No related branches found
No related tags found
No related merge requests found
......@@ -348,6 +348,12 @@ static int Control (vout_display_t *vd, int query, va_list ap)
cfg_tmp.display.width = bounds.size.width;
cfg_tmp.display.height = bounds.size.height;
/* Reverse vertical alignment as the GL tex are Y inverted */
if (cfg_tmp.align.vertical == VOUT_DISPLAY_ALIGN_TOP)
cfg_tmp.align.vertical = VOUT_DISPLAY_ALIGN_BOTTOM;
else if (cfg_tmp.align.vertical == VOUT_DISPLAY_ALIGN_BOTTOM)
cfg_tmp.align.vertical = VOUT_DISPLAY_ALIGN_TOP;
vout_display_place_t place;
vout_display_PlacePicture (&place, &vd->source, &cfg_tmp, false);
if (OpenglLock(sys->gl))
......
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