summaryrefslogtreecommitdiffstats
path: root/libvo/vo_xv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_xv.c')
-rw-r--r--libvo/vo_xv.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c
index 2c30bddb50..7b1aeabd8e 100644
--- a/libvo/vo_xv.c
+++ b/libvo/vo_xv.c
@@ -140,22 +140,6 @@ static void draw_alpha_null(int x0, int y0, int w, int h,
static void deallocate_xvimage(int foo);
-static void calc_drwXY(uint32_t *drwX, uint32_t *drwY) {
- *drwX = *drwY = 0;
- if (vo_fs) {
- aspect(&vo_dwidth, &vo_dheight, A_ZOOM);
- vo_dwidth = FFMIN(vo_dwidth, vo_screenwidth);
- vo_dheight = FFMIN(vo_dheight, vo_screenheight);
- *drwX = (vo_screenwidth - vo_dwidth) / 2;
- *drwY = (vo_screenheight - vo_dheight) / 2;
- mp_msg(MSGT_VO, MSGL_V, "[xv-fs] dx: %d dy: %d dw: %d dh: %d\n",
- *drwX, *drwY, vo_dwidth, vo_dheight);
- } else if (WinID == 0) {
- *drwX = vo_dx;
- *drwY = vo_dy;
- }
-}
-
/*
* connect to server, create and map window,
* allocate colors and (shared) memory
@@ -286,7 +270,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
current_ip_buf = 0;
if ((flags & VOFLAG_FULLSCREEN) && WinID <= 0) vo_fs = 1;
- calc_drwXY(&drwX, &drwY);
+ vo_calc_drwXY(&drwX, &drwY);
panscan_calc();
@@ -391,7 +375,7 @@ static void check_events(void)
if (e & VO_EVENT_RESIZE)
{
- calc_drwXY(&drwX, &drwY);
+ vo_calc_drwXY(&drwX, &drwY);
}
if (e & VO_EVENT_EXPOSE || e & VO_EVENT_RESIZE)