Resizing is handled via the Refresh() function - only.
/* Ask the module to acknowledge/refuse the display size change requested
* (externally or by VOUT_DISPLAY_EVENT_DISPLAY_SIZE) */
- VOUT_DISPLAY_CHANGE_DISPLAY_SIZE, /* const vout_display_cfg_t *p_cfg, int is_forced */
+ VOUT_DISPLAY_CHANGE_DISPLAY_SIZE, /* const vout_display_cfg_t *p_cfg */
/* Ask the module to acknowledge/refuse fill display state change after
* being requested externally */
case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE:
{
const vout_display_cfg_t *cfg = va_arg(ap, const vout_display_cfg_t *);
- bool forced = va_arg(ap, int);
- if (forced)
- {
- vout_window_SetSize(sys->embed,
- cfg->display.width, cfg->display.height);
- return VLC_EGENERIC; /* Always fail. See x11.c for rationale. */
- }
-
vout_display_place_t place;
+
vout_display_PlacePicture(&place, &vd->source, cfg, false);
if (place.width != vd->fmt.i_visible_width
|| place.height != vd->fmt.i_visible_height)
{
vout_display_sys_t *sys = vd->sys;
+ (void) args;
+
switch (query) {
case VOUT_DISPLAY_HIDE_MOUSE:
caca_set_mouse(sys->dp, 0);
return VLC_SUCCESS;
- case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE: {
- const vout_display_cfg_t *cfg = va_arg(args, const vout_display_cfg_t *);
-
- caca_refresh_display(sys->dp);
-
- /* Not quite good but not sure how to resize it */
- if ((int)cfg->display.width != caca_get_display_width(sys->dp) ||
- (int)cfg->display.height != caca_get_display_height(sys->dp))
- return VLC_EGENERIC;
- return VLC_SUCCESS;
- }
-
+ case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE:
case VOUT_DISPLAY_CHANGE_ZOOM:
case VOUT_DISPLAY_CHANGE_DISPLAY_FILLED:
case VOUT_DISPLAY_CHANGE_SOURCE_ASPECT: