annotate libvo/w32_common.h @ 29516:87897065b7d7

Fix aspect_fit to work correctly when borders need to be added on top and bottom, previous code accidentally compared against screen dimensions, resulting in cropping instead of added borders.
author reimar
date Thu, 27 Aug 2009 12:38:22 +0000
parents 7681eab10aea
children 75cf3848effd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28446
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
1 /*
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
2 * This file is part of MPlayer.
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
3 *
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
5 * it under the terms of the GNU General Public License as published by
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
7 * (at your option) any later version.
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
8 *
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
12 * GNU General Public License for more details.
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
13 *
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
14 * You should have received a copy of the GNU General Public License along
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
17 */
7681eab10aea Add standard license headers, unify header formatting.
diego
parents: 28051
diff changeset
18
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26011
diff changeset
19 #ifndef MPLAYER_W32_COMMON_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26011
diff changeset
20 #define MPLAYER_W32_COMMON_H
25553
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 21631
diff changeset
21
26162
0585db9f5b32 Add missing header #includes to fix 'make checkheaders'.
diego
parents: 26029
diff changeset
22 #include <stdint.h>
0585db9f5b32 Add missing header #includes to fix 'make checkheaders'.
diego
parents: 26029
diff changeset
23 #include <windows.h>
0585db9f5b32 Add missing header #includes to fix 'make checkheaders'.
diego
parents: 26029
diff changeset
24
21631
2d3fdf94a50c Fix compilation under MinGW with X11 enabled
reimar
parents: 18174
diff changeset
25 extern HWND vo_w32_window;
10880
ba9557e864c0 vo_gl2 port to win32 patch by Tristan Seligmann <mithrandi-mplayer-dev-eng at mithrandi.za.net>
faust3
parents:
diff changeset
26 extern int vo_vm;
ba9557e864c0 vo_gl2 port to win32 patch by Tristan Seligmann <mithrandi-mplayer-dev-eng at mithrandi.za.net>
faust3
parents:
diff changeset
27
28051
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 26162
diff changeset
28 int vo_w32_init(void);
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 26162
diff changeset
29 void vo_w32_uninit(void);
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 26162
diff changeset
30 void vo_w32_ontop(void);
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 26162
diff changeset
31 void vo_w32_border(void);
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 26162
diff changeset
32 void vo_w32_fullscreen(void);
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 26162
diff changeset
33 int vo_w32_check_events(void);
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 26162
diff changeset
34 int vo_w32_config(uint32_t, uint32_t, uint32_t);
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 26162
diff changeset
35 void destroyRenderingContext(void);
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 26162
diff changeset
36 void w32_update_xinerama_info(void);
25553
6ac1ece1f9fe Add multiple inclusion guards to all header files that lack them.
diego
parents: 21631
diff changeset
37
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 26011
diff changeset
38 #endif /* MPLAYER_W32_COMMON_H */