[Mplayer-cvslog] CVS: main/libvo vo_svga.c,1.10,1.11

Zoltan Mark Vician se7encode at users.sourceforge.net
Fri Apr 13 15:02:15 CEST 2001


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

Modified Files:
	vo_svga.c 
Log Message:
Requested resolution (d_width) added.

Index: vo_svga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_svga.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** vo_svga.c	2001/04/12 22:10:28	1.10
--- vo_svga.c	2001/04/13 13:02:13	1.11
***************
*** 78,81 ****
--- 78,83 ----
                       uint32_t d_height, uint32_t fullscreen, char *title, 
  		     uint32_t format) {
+   uint32_t wid = (d_width > 0 ? d_width : width);
+   
    if (!checked) {
      checksupportedmodes(); // Looking for available video modes
***************
*** 84,88 ****
    if (format == IMGFMT_YV12) bpp = 32;
    else bpp = format & 255;
!   if (d_width > 800)
      switch (bpp) {
        case 32: vid_mode = 36; break;
--- 86,90 ----
    if (format == IMGFMT_YV12) bpp = 32;
    else bpp = format & 255;
!   if (wid > 800)
      switch (bpp) {
        case 32: vid_mode = 36; break;
***************
*** 92,96 ****
      }
    else
!     if (d_width > 640)
        switch (bpp) {
          case 32: vid_mode = 35; break;
--- 94,98 ----
      }
    else
!     if (wid > 640)
        switch (bpp) {
          case 32: vid_mode = 35; break;


_______________________________________________
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