Revert "fix missing event on move that breaks xmga window movement"
[mplayer/glamo.git] / libvo / aspect.h
blob0c741d4ae3cb6e55dc6fc87e86cc2dba342bb196
1 /*
2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_ASPECT_H
20 #define MPLAYER_ASPECT_H
21 /* Stuff for correct aspect scaling. */
23 extern int vo_panscan_x;
24 extern int vo_panscan_y;
25 extern float vo_panscan_amount;
27 void panscan_init(void);
28 void panscan_calc(void);
30 void aspect_save_orig(int orgw, int orgh);
32 void aspect_save_prescale(int prew, int preh);
34 void aspect_save_screenres(int scrw, int scrh);
36 #define A_ZOOM 1
37 #define A_NOZOOM 0
39 void aspect(int *srcw, int *srch, int zoom);
40 void aspect_fit(int *srcw, int *srch, int fitw, int fith);
42 #endif /* MPLAYER_ASPECT_H */