Mercurial > mplayer.hg
changeset 2182:a7e539b11ba0
Fix non-X11 build
author | atmos4 |
---|---|
date | Sat, 13 Oct 2001 13:38:59 +0000 |
parents | d90f8fc7ead6 |
children | 15da29db3ff1 |
files | libvo/vo_sdl.c |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_sdl.c Sat Oct 13 11:58:41 2001 +0000 +++ b/libvo/vo_sdl.c Sat Oct 13 13:38:59 2001 +0000 @@ -565,10 +565,18 @@ /* calculate new video size/aspect */ if(!priv->mode) { if(priv->fulltype&FS) { +#ifdef HAVE_X11 aspect(&newwidth, &newheight, priv->XWidth ? priv->XWidth : priv->dstwidth, priv->XHeight ? priv->XHeight : priv->dstheight); +#else + aspect(&newwidth, &newheight, priv->dstwidth, priv->dstheight); +#endif } else if(priv->fulltype&VM) { +#ifdef HAVE_X11 aspect(&newwidth, &newheight, priv->dstwidth, (int)((float)priv->dstwidth*((float)priv->XHeight / (float)priv->XWidth))); +#else + aspect(&newwidth, &newheight, priv->dstwidth, priv->dstheight); +#endif } else { aspect(&newwidth, &newheight, priv->fullmodes[mode]->w, priv->fullmodes[mode]->h); } @@ -1085,7 +1093,11 @@ else if ( keypressed == SDLK_n ) { int newwidth = priv->dstwidth, newheight = priv->dstheight; +#ifdef HAVE_X11 aspect(&newwidth, &newheight, priv->dstwidth, (int)((float)priv->dstwidth*((float)priv->XHeight / (float)priv->XWidth))); +#else + aspect(&newwidth, &newheight, priv->dstwidth, priv->dstheight); +#endif if (priv->surface->w != newwidth || priv->surface->h != newheight) { priv->surface = SDL_SetVideoMode(newwidth, newheight, priv->bpp, priv->sdlflags); priv->windowsize.w = priv->surface->w;