VOUT_DISPLAY_EVENT_FULLSCREEN,
VOUT_DISPLAY_EVENT_WINDOW_STATE,
- VOUT_DISPLAY_EVENT_DISPLAY_SIZE, /* The display size need to change : int i_width, int i_height, bool is_fullscreen */
+ VOUT_DISPLAY_EVENT_DISPLAY_SIZE, /* The display size need to change : int i_width, int i_height */
/* */
VOUT_DISPLAY_EVENT_CLOSE,
va_end(args);
}
-static inline void vout_display_SendEventDisplaySize(vout_display_t *vd, int width, int height, bool is_fullscreen)
+static inline void vout_display_SendEventDisplaySize(vout_display_t *vd, int width, int height)
{
- vout_display_SendEvent(vd, VOUT_DISPLAY_EVENT_DISPLAY_SIZE, width, height, is_fullscreen);
+ vout_display_SendEvent(vd, VOUT_DISPLAY_EVENT_DISPLAY_SIZE, width, height);
}
static inline void vout_display_SendEventPicturesInvalid(vout_display_t *vd)
{
vc_tv_register_callback(tvservice_cb, vd);
if (query_resolution(vd, &sys->display_width, &sys->display_height) >= 0) {
- vout_display_SendEventDisplaySize(vd, sys->display_width, sys->display_height,
- vd->cfg->is_fullscreen);
+ vout_display_SendEventDisplaySize(vd, sys->display_width, sys->display_height);
} else {
sys->display_width = vd->cfg->display.width;
sys->display_height = vd->cfg->display.height;
case VOUT_DISPLAY_CHANGE_FULLSCREEN:
tmp_cfg = va_arg(args, const vout_display_cfg_t *);
vout_display_SendEventDisplaySize(vd, sys->display_width,
- sys->display_height, tmp_cfg->is_fullscreen);
+ sys->display_height);
ret = VLC_SUCCESS;
break;
if (query_resolution(vd, &width, &height) >= 0) {
sys->display_width = width;
sys->display_height = height;
- vout_display_SendEventDisplaySize(vd, width, height, vd->cfg->is_fullscreen);
+ vout_display_SendEventDisplaySize(vd, width, height);
}
sys->need_configure_display = false;
if (is_fullscreen && vout_window_SetFullScreen(sys->embed, true))
is_fullscreen = false;
vout_display_SendEventFullscreen(vd, is_fullscreen);
- vout_display_SendEventDisplaySize(vd, width, height, is_fullscreen);
+ vout_display_SendEventDisplaySize(vd, width, height);
return VLC_SUCCESS;
sys->state = *vd->cfg;
sys->state.is_fullscreen = false;
vout_display_SendEventFullscreen(vd, false);
- vout_display_SendEventDisplaySize(vd, fmt.i_width, fmt.i_height, false);
+ vout_display_SendEventDisplaySize(vd, fmt.i_width, fmt.i_height);
return VLC_SUCCESS;
aa_resize(sys->aa_context);
vout_display_SendEventDisplaySize(vd,
aa_imgwidth(sys->aa_context),
- aa_imgheight(sys->aa_context), false);
+ aa_imgheight(sys->aa_context));
break;
/* TODO keys support to complete */
if (width != vd->cfg->display.width ||
height != vd->cfg->display.height)
- vout_display_SendEventDisplaySize(vd, width, height, false);
+ vout_display_SendEventDisplaySize(vd, width, height);
}
/**
}
case CACA_EVENT_RESIZE:
vout_display_SendEventDisplaySize(vd, caca_get_event_resize_width(&ev),
- caca_get_event_resize_height(&ev), false);
+ caca_get_event_resize_height(&ev));
break;
case CACA_EVENT_MOUSE_MOTION: {
vout_display_place_t place;
else
outputSize = [sys->container visibleRect].size;
vout_display_SendEventFullscreen(vd, false);
- vout_display_SendEventDisplaySize(vd, (int)outputSize.width, (int)outputSize.height, false);
+ vout_display_SendEventDisplaySize(vd, (int)outputSize.width, (int)outputSize.height);
[pool release];
return VLC_SUCCESS;
CGSize boundsSize = self.bounds.size;
if (_vd)
- vout_display_SendEventDisplaySize(_vd, boundsSize.width, boundsSize.height, _vd->cfg->is_fullscreen);
+ vout_display_SendEventDisplaySize(_vd, boundsSize.width, boundsSize.height);
}
- (BOOL)canDrawInCGLContext:(CGLContextObj)glContext pixelFormat:(CGLPixelFormatObj)pixelFormat forLayerTime:(CFTimeInterval)timeInterval displayTime:(const CVTimeStamp *)timeStamp
/* */
vout_display_SendEventFullscreen(vd, true);
- vout_display_SendEventDisplaySize(vd, fmt.i_width, fmt.i_height, true);
+ vout_display_SendEventDisplaySize(vd, fmt.i_width, fmt.i_height);
return VLC_SUCCESS;
error:
/* */
vout_display_SendEventFullscreen(vd, true);
- vout_display_SendEventDisplaySize(vd, fmt.i_visible_width, fmt.i_visible_height, true);
+ vout_display_SendEventDisplaySize(vd, fmt.i_visible_width, fmt.i_visible_height);
return VLC_SUCCESS;
}
/* forward our dimensions to the vout core */
CGSize viewSize = sys->viewContainer.frame.size;
vout_display_SendEventFullscreen(vd, false);
- vout_display_SendEventDisplaySize(vd, (int)viewSize.width, (int)viewSize.height, false);
+ vout_display_SendEventDisplaySize(vd, (int)viewSize.width, (int)viewSize.height);
/* */
[[NSNotificationCenter defaultCenter] addObserver:sys->glESView
vout_display_PlacePicture(&place, &_voutDisplay->source, &cfg_tmp, false);
_voutDisplay->sys->place = place;
vout_display_SendEventDisplaySize(_voutDisplay, viewSize.width * scaleFactor,
- viewSize.height * scaleFactor,
- _voutDisplay->cfg->is_fullscreen);
+ viewSize.height * scaleFactor);
}
}
vd->control = Control;
/* */
- vout_display_SendEventDisplaySize (vd, vd->fmt.i_visible_width, vd->fmt.i_visible_height, false);
+ vout_display_SendEventDisplaySize (vd, vd->fmt.i_visible_width, vd->fmt.i_visible_height);
return VLC_SUCCESS;
vout_display_PlacePicture (&place, &vd->source, &cfg_tmp, false);
vd->sys->place = place;
- vout_display_SendEventDisplaySize (vd, bounds.size.width, bounds.size.height, vd->cfg->is_fullscreen);
+ vout_display_SendEventDisplaySize (vd, bounds.size.width, bounds.size.height);
}
}
point.x, point.y,
rect.right, rect.bottom);
if (is_resized)
- vout_display_SendEventDisplaySize(vd, rect.right, rect.bottom, cfg->is_fullscreen);
- if (!is_forced && !has_moved && !is_resized )
+ vout_display_SendEventDisplaySize(vd, rect.right, rect.bottom);
+ if (!is_forced && !has_moved && !is_resized)
return;
/* Update the window position and size */
vd->manage = Manage;
/* */
- vout_display_SendEventDisplaySize(vd, display_width, display_height, vd->cfg->is_fullscreen);
+ vout_display_SendEventDisplaySize(vd, display_width, display_height);
return VLC_SUCCESS;
error:
vout_display_PlacePicture(&sys->place, &vd->source, &cfg, !sys->overlay);
}
- vout_display_SendEventDisplaySize(vd, cfg.display.width, cfg.display.height, cfg.is_fullscreen);
+ vout_display_SendEventDisplaySize(vd, cfg.display.width, cfg.display.height);
return VLC_SUCCESS;
}
case VOUT_DISPLAY_CHANGE_ZOOM:
}
case SDL_VIDEORESIZE:
- vout_display_SendEventDisplaySize(vd, event.resize.w, event.resize.h, vd->cfg->is_fullscreen);
+ vout_display_SendEventDisplaySize(vd, event.resize.w, event.resize.h);
break;
default:
/* */
vout_display_SendEventFullscreen(vd, false);
- vout_display_SendEventDisplaySize(vd, fmt.i_width, fmt.i_height, false);
+ vout_display_SendEventDisplaySize(vd, fmt.i_width, fmt.i_height);
vout_display_DeleteWindow(vd, NULL);
return VLC_SUCCESS;
}
if (query == VOUT_DISPLAY_CHANGE_DISPLAY_SIZE && va_arg(ap, int))
{
vout_display_SendEventDisplaySize(vd, cfg->display.width,
- cfg->display.height,
- vd->cfg->is_fullscreen);
+ cfg->display.height);
return VLC_EGENERIC;
}
is_fullscreen = false;
vout_display_SendEventFullscreen(vd, is_fullscreen);
vout_display_SendEventDisplaySize(vd, vd->cfg->display.width,
- vd->cfg->display.height, is_fullscreen);
+ vd->cfg->display.height);
return VLC_SUCCESS;
error:
HandleParentStructure (vout_display_t *vd,
const xcb_configure_notify_event_t *ev)
{
- vout_display_SendEventDisplaySize (vd, ev->width, ev->height, vd->cfg->is_fullscreen);
+ vout_display_SendEventDisplaySize (vd, ev->width, ev->height);
}
/**
if (vout_window_SetFullScreen (surface, fs))
fs = false;
vout_display_SendEventFullscreen (vd, fs);
- vout_display_SendEventDisplaySize (vd, width, height, fs);
+ vout_display_SendEventDisplaySize (vd, width, height);
return VLC_SUCCESS;
if (is_fullscreen && vout_window_SetFullScreen (sys->embed, true))
is_fullscreen = false;
vout_display_SendEventFullscreen (vd, is_fullscreen);
- vout_display_SendEventDisplaySize (vd, width, height, is_fullscreen);
+ vout_display_SendEventDisplaySize (vd, width, height);
return VLC_SUCCESS;
if (is_fullscreen && vout_window_SetFullScreen (p_sys->embed, true))
is_fullscreen = false;
vout_display_SendEventFullscreen (vd, is_fullscreen);
- vout_display_SendEventDisplaySize (vd, width, height, is_fullscreen);
+ vout_display_SendEventDisplaySize (vd, width, height);
return VLC_SUCCESS;
case VOUT_DISPLAY_EVENT_DISPLAY_SIZE: {
const int width = (int)va_arg(args, int);
const int height = (int)va_arg(args, int);
- const bool is_fullscreen = (bool)va_arg(args, int);
- msg_Dbg(vd, "VoutDisplayEvent 'resize' %dx%d %s",
- width, height, is_fullscreen ? "fullscreen" : "window");
+ msg_Dbg(vd, "VoutDisplayEvent 'resize' %dx%d", width, height);
/* */
vlc_mutex_lock(&osys->lock);