[MPlayer-dev-eng] [PATCH] SDL widescreen modes

Klokan Petr Pridal xpridal at informatics.muni.cz
Mon Jun 10 19:59:55 CEST 2002


Hi,

I made a patch to libvo/vo_sdl.c, which autoselect in the start a widescreen mode, if there is some. I thing it's pretty source, so it will be commited to CVS.

In verbose mode mplayer will list available modes from SDL, somethink like:
Mode: 0:  1152 x 768
Mode: 1:  1024 x 768
Mode: 2:  896 x 600
Mode: 3:  800 x 600
Mode: 4:  720 x 480
Mode: 5:  640 x 480
SET Mode: 4:  720 x 480

Klokan
-- 
 (\_/)    Klokan Petr Pridal
 (o o)    ----------------------------
  (.)     student FI MU Brno, webmaster http://www.linux.cz/
 (] [) _  mailto:klokan at seznam.cz
 {~~~}/ ) ICQ:3674202
(')  (')  http://klokan.misto.cz/
 \_)-(_)  Look at http://www.fi.muni.cz/~xpridal/
-------------- next part --------------
702,705c702,703
< 		int i;
< 		if (verbose) for(i=0;priv->fullmodes[i];++i) 
< 		  printf("Mode: %d:  %d x %d\n", i, priv->fullmodes[i]->w, priv->fullmodes[i]->h);
< 		mode = 0; // Default to the biggest mode available
---
>         int i;
> 		mode = 0; // Default to the biggest mode avaible
707d704
< 		  // Find the smallest suitable, prefer widescreen 
710,718c707,708
< 		    if( (priv->fullmodes[i-1]->w > priv->fullmodes[i]->w) && 
< 		        (priv->fullmodes[i-1]->h = priv->fullmodes[i]->h) && (i != 0)) {
< 		      mode = i-1;
< 		      break;
< 		    }
< 		    else { 
< 		      mode = i;
< 		      break;
< 		    }
---
> 		    mode = i;
> 		    break;
721d710
< 		if (verbose) printf("SET Mode: %d:  %d x %d\n", mode, priv->fullmodes[mode]->w, priv->fullmodes[mode]->h);


More information about the MPlayer-dev-eng mailing list