[MPlayer-dev-eng] [PATCH] ggi osd support added

Diego Biurrun diego at biurrun.de
Fri Jun 30 10:30:38 CEST 2006


On Fri, Jun 30, 2006 at 03:40:33AM -0400, spdepagn at ncsu.edu wrote:
> 
> --- mplayer/libvo/vo_ggi.c	2006-06-30 00:42:31.000000000 -0600
> +++ mplayer-patched/libvo/vo_ggi.c	2006-06-30 00:41:31.000000000 -0600
> @@ -171,7 +175,8 @@
>      if (GT_SCHEME(mode.graphtype) == GT_PALETTE)
>          ggiSetColorfulPalette(ggi_conf.vis);
>  
> -    if (GT_SCHEME(mode.graphtype) != GT_TRUECOLOR) {
> +    if (GT_SCHEME(mode.graphtype) != GT_TRUECOLOR)
> +    {
>          ggi_mode drawmode;
>  
>          ggi_conf.drawvis = ggiOpen("display-memory", NULL);
> @@ -202,7 +207,6 @@
>      vo_dheight = height;
>      vo_dbpp = GT_SIZE(mode.graphtype);
>  
> -
>      /* calculate top, left corner */
>      vo_dx = (vo_screenwidth - vo_dwidth) / 2;
>      vo_dy = (vo_screenheight - vo_dheight) / 2;
> @@ -230,6 +234,7 @@
>  
>      ggi_conf.srcbpp = (ggi_conf.srcdepth + 7) / 8;
>  
> +
>      ggi_conf.flushregion.x1 = vo_dx;
>      ggi_conf.flushregion.y1 = vo_dy;
>      ggi_conf.flushregion.x2 = vo_dwidth;
> @@ -267,7 +272,8 @@
>      mpi->flags |= MP_IMGFLAG_DIRECT;
>  
>  #ifdef GGI_FLIP
> -    if (ggi_conf.voflags & VOFLAG_FLIPPING) {
> +    if (ggi_conf.voflags & VOFLAG_FLIPPING)
> +    {
>          mpi->stride[0] = -mpi->stride[0];
>      }
>  #endif

Please resend without such cosmetics.

Diego



More information about the MPlayer-dev-eng mailing list