comparison libvo/x11_common.c @ 28512:ad0fcde5f320

Remove now unused vo_calc_drwXY function.
author reimar
date Thu, 12 Feb 2009 18:03:38 +0000
parents fe72d4f7ac25
children bd24ac0d9fd8
comparison
equal deleted inserted replaced
28511:db19e31a2c7c 28512:ad0fcde5f320
1874 else 1874 else
1875 return VO_NOTIMPL; 1875 return VO_NOTIMPL;
1876 return VO_TRUE; 1876 return VO_TRUE;
1877 } 1877 }
1878 1878
1879 void vo_calc_drwXY(uint32_t *drwX, uint32_t *drwY)
1880 {
1881 *drwX = *drwY = 0;
1882 if (vo_fs) {
1883 aspect(&vo_dwidth, &vo_dheight, A_ZOOM);
1884 vo_dwidth = FFMIN(vo_dwidth, vo_screenwidth);
1885 vo_dheight = FFMIN(vo_dheight, vo_screenheight);
1886 *drwX = (vo_screenwidth - vo_dwidth) / 2;
1887 *drwY = (vo_screenheight - vo_dheight) / 2;
1888 mp_msg(MSGT_VO, MSGL_V, "[vo-fs] dx: %d dy: %d dw: %d dh: %d\n",
1889 *drwX, *drwY, vo_dwidth, vo_dheight);
1890 } else if (WinID == 0) {
1891 *drwX = vo_dx;
1892 *drwY = vo_dy;
1893 }
1894 }
1895
1896 #ifdef CONFIG_XV 1879 #ifdef CONFIG_XV
1897 int vo_xv_set_eq(uint32_t xv_port, char *name, int value) 1880 int vo_xv_set_eq(uint32_t xv_port, char *name, int value)
1898 { 1881 {
1899 XvAttribute *attributes; 1882 XvAttribute *attributes;
1900 int i, howmany, xv_atom; 1883 int i, howmany, xv_atom;