changeset 27443:ff52998e24e8

-geometry support for -vo fbdev. Patch by Sander (thrill12 gmx net)
author reimar
date Fri, 22 Aug 2008 17:26:16 +0000
parents afa2cc0166be
children 2c4914cb8905
files libvo/vo_fbdev.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_fbdev.c	Thu Aug 21 13:40:16 2008 +0000
+++ b/libvo/vo_fbdev.c	Fri Aug 22 17:26:16 2008 +0000
@@ -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 @@
 #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));