[Mplayer-cvslog] CVS: main/libvo vo_fbdev.c,1.4,1.5

Szabolcs Berecz szabii at users.sourceforge.net
Thu Mar 29 15:58:57 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory usw-pr-cvs1:/tmp/cvs-serv4321

Modified Files:
	vo_fbdev.c 
Log Message:
disabled scrollback buffer (virtual fb size set to real screen size)

Index: vo_fbdev.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_fbdev.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** vo_fbdev.c	2001/03/28 18:07:24	1.4
--- vo_fbdev.c	2001/03/29 13:58:54	1.5
***************
*** 108,119 ****
--- 108,131 ----
  		fb_dev_name = "/dev/fb0";
  	printf("fb_init: using %s\n", fb_dev_name);
+ 
  	if ((fb_dev_fd = open(fb_dev_name, O_RDWR)) == -1) {
  		printf("fb_init: Can't open %s: %s\n", fb_dev_name, strerror(errno));
  		return 1;
  	}
+ 
  	if (ioctl(fb_dev_fd, FBIOGET_VSCREENINFO, &fb_var_info)) {
  		printf("fb_init: Can't get VSCREENINFO: %s\n", strerror(errno));
  		return 1;
  	}
+ 
+ 	/* disable scrolling */
+ 	fb_var_info.xres_virtual = fb_var_info.xres;
+ 	fb_var_info.yres_virtual = fb_var_info.yres;
+ 
+ 	if (ioctl(fb_dev_fd, FBIOPUT_VSCREENINFO, &fb_var_info)) {
+ 		printf("fb_init: Can't put VSCREENINFO: %s\n", strerror(errno));
+ 		return 1;
+ 	}
+ 
  	if (ioctl(fb_dev_fd, FBIOGET_FSCREENINFO, &fb_fix_info)) {
  		printf("fb_init: Can't get VSCREENINFO: %s\n", strerror(errno));
***************
*** 146,150 ****
  			printf("fb_init: unknown FB_TYPE: %d\n", fb_fix_info.type);
  			return 1;
! 	}			
  	fb_bpp = fb_var_info.bits_per_pixel;
  	screen_width = fb_fix_info.line_length;
--- 158,163 ----
  			printf("fb_init: unknown FB_TYPE: %d\n", fb_fix_info.type);
  			return 1;
! 	}
! 
  	fb_bpp = fb_var_info.bits_per_pixel;
  	screen_width = fb_fix_info.line_length;


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list