[Mplayer-cvslog] CVS: main/libvo vo_directx.c,NONE,1.1

Arpi of Ize arpi at mplayerhq.hu
Sat Sep 28 21:17:36 CEST 2002


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv24826

Added Files:
	vo_directx.c 
Log Message:
argh i forgot to add new file..
directx driver by Sascha Sommer <saschasommer at freenet.de>


--- NEW FILE ---
/******************************************************************************
 * vo_directx.c: Directx v2 or later DirectDraw interface for MPlayer
 * Copyright (c) 2002 Sascha Sommer <saschasommer at freenet.de>.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
 *
 *****************************************************************************/
[...1205 lines suppressed...]
        return put_image(data);
    case VOCTRL_FULLSCREEN:
		{
			//printf("Display mode switch\n");
	        if(vm)
			{
				mp_msg(MSGT_VO, MSGL_ERR,"<vo_directx><ERROR>currently we do not allow to switch from exclusive to windowed mode\n");
			}
	        else
			{
				if(fs)fs=0;  //set to fullscreen or windowed
		        else fs = 1;
		        if(nooverlay == 0)Directx_DisplayOverlay(); //update window
		        else Directx_DisplayNonOverlay();
			}
		    return VO_TRUE;
		}
    };
    return VO_NOTIMPL;
}




More information about the MPlayer-cvslog mailing list