summaryrefslogtreecommitdiffstats
path: root/libvo/vo_fbdev.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-22 17:26:16 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-22 17:26:16 +0000
commitd54c1f0309c6467c719da1067f03ad43fe67a2b5 (patch)
treedafcfbe8f0333882d83f55b16bb7d1c02988b766 /libvo/vo_fbdev.c
parentc2a12149e2cffa26dc857bb07da3a7777381c248 (diff)
downloadmpv-d54c1f0309c6467c719da1067f03ad43fe67a2b5.tar.bz2
mpv-d54c1f0309c6467c719da1067f03ad43fe67a2b5.tar.xz
-geometry support for -vo fbdev.
Patch by Sander (thrill12 gmx net) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27475 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_fbdev.c')
-rw-r--r--libvo/vo_fbdev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_fbdev.c b/libvo/vo_fbdev.c
index 1d70f5a18b..14889b81b7 100644
--- a/libvo/vo_fbdev.c
+++ b/libvo/vo_fbdev.c
@@ -25,6 +25,7 @@
#include "video_out_internal.h"
#include "fastmemcpy.h"
#include "sub.h"
+#include "geometry.h"
#ifdef CONFIG_VIDIX
#include "vosub_vidix.h"
#endif
@@ -999,6 +1000,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
#endif
{
int x_offset=0,y_offset=0;
+ geometry(&x_offset, &y_offset, &out_width, &out_height, fb_xres, fb_yres);
if ((frame_buffer = (uint8_t *) mmap(0, fb_size, PROT_READ | PROT_WRITE,
MAP_SHARED, fb_dev_fd, 0)) == (uint8_t *) -1) {
mp_msg(MSGT_VO, MSGL_ERR, "Can't mmap %s: %s\n", fb_dev_name, strerror(errno));