Commit 94574a22 authored by Victorien Le Couviour--Tuffet's avatar Victorien Le Couviour--Tuffet Committed by Jean-Baptiste Kempf

caopengllayer: correct vertical alignment

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent c09f4822
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment