[Mplayer-cvslog] CVS: main/libvo vo_svga.c,1.2,1.3

GEREOFFY arpi_esp at users.sourceforge.net
Thu Apr 5 21:44:56 CEST 2001


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

Modified Files:
	vo_svga.c 
Log Message:
bpp fix

Index: vo_svga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_svga.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** vo_svga.c	2001/04/05 19:01:27	1.2
--- vo_svga.c	2001/04/05 19:44:54	1.3
***************
*** 56,60 ****
  
  static uint32_t pformat;
- static uint8_t bpp;
  
  static uint8_t checked = 0;
--- 56,59 ----
***************
*** 76,83 ****
--- 75,84 ----
                       uint32_t d_height, uint32_t fullscreen, char *title, 
  		     uint32_t format) {
+ static uint8_t bpp;
    if (!checked) {
      checksupportedmodes(); // Looking for available video modes
    }
    pformat = format;
+   if(format==IMGFMT_YV12) bpp=32; else bpp=format&255;
    if (d_width > 800)
      switch (bpp) {
***************
*** 154,173 ****
        case IMGFMT_RGB32: 
        case IMGFMT_BGR|32: {
-         bpp = 32; 
  	return (vid_modes[_640x480x16M32] | vid_modes[_800x600x16M32] | vid_modes[_1024x768x16M32]);
        }
        case IMGFMT_RGB24: 
        case IMGFMT_BGR|24: {
-         bpp = 24; 
  	return (vid_modes[_640x480x16M] | vid_modes[_800x600x16M] | vid_modes[_1024x768x16M]);
        }
        case IMGFMT_RGB16: 
        case IMGFMT_BGR|16: {
-         bpp = 16;
  	return (vid_modes[_640x480x64K] | vid_modes[_800x600x64K] | vid_modes[_1024x768x64K]);
        }
        case IMGFMT_RGB15: 
        case IMGFMT_BGR|15: {
-         bpp = 15; 
  	return (vid_modes[_640x480x32K] | vid_modes[_800x600x32K] | vid_modes[_1024x768x32K]);
        }
--- 155,170 ----


_______________________________________________
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