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

glwin32: correct vertical alignment

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 94574a22
......@@ -194,6 +194,14 @@ void UpdateRects(vout_display_t *vd,
place_cfg.display.width = rect.right;
place_cfg.display.height = rect.bottom;
#if (defined(MODULE_NAME_IS_glwin32))
/* Reverse vertical alignment as the GL tex are Y inverted */
if (place_cfg.align.vertical == VOUT_DISPLAY_ALIGN_TOP)
place_cfg.align.vertical = VOUT_DISPLAY_ALIGN_BOTTOM;
else if (place_cfg.align.vertical == VOUT_DISPLAY_ALIGN_BOTTOM)
place_cfg.align.vertical = VOUT_DISPLAY_ALIGN_TOP;
vout_display_place_t place;
vout_display_PlacePicture(&place, source, &place_cfg, false);
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