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

macosx: macosx-gl-display: correct vertical alignment

The GL textures are Y inverted, so we must reverse the vertical alignment.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent d6d8374d
......@@ -391,6 +391,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);
@synchronized (sys->glView) {
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