/*****************************************************************************
* vout_directx.c: Windows DirectX video output display method
*****************************************************************************
- * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: vout_directx.c,v 1.10 2001/08/05 15:32:46 gbazin Exp $
+ * Copyright (C) 2001 VideoLAN
+ * $Id: vout_directx.c,v 1.18 2002/01/04 14:01:34 sam Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
-#define MODULE_NAME directx
-#include "modules_inner.h"
-
/* ToDo:
*
* Double buffering
* implementing this is not considered high priority.
*
*****************************************************************************/
-#include "defs.h"
-
#include <errno.h> /* ENOMEM */
#include <stdlib.h> /* free() */
#include <string.h> /* strerror() */
+#include <videolan/vlc.h>
+
#include <windows.h>
#include <windowsx.h>
# include <directx.h>
#endif
-#include "config.h"
-#include "common.h"
-#include "threads.h"
-#include "mtime.h"
-#include "tests.h"
#include "netutils.h"
#include "video.h"
#include "video_output.h"
-#include "intf_msg.h"
#include "interface.h"
-#include "main.h"
-
-#include "modules.h"
-#include "modules_export.h"
#include "vout_directx.h"
VOUT_FULLSCREEN_DEFAULT );
#if 0
p_vout->b_need_render = !main_GetIntVariable( VOUT_OVERLAY_VAR,
- VOUT_OVERLAY_DEFAULT );
+ VOUT_OVERLAY_DEFAULT );
#else
p_vout->b_need_render = 0; /* default = overlay */
#endif
* so we send a fake message */
if( p_vout->p_sys->i_event_thread_status == THREAD_READY )
{
- PostMessage( p_vout->p_sys->hwnd, WM_CHAR, (WPARAM)'^', 0);
+ PostMessage( p_vout->p_sys->hwnd, WM_CHAR, (WPARAM)'q', 0);
vlc_thread_join( p_vout->p_sys->event_thread_id );
}
{
intf_WarnMsg( 3, "vout: vout_Manage Scale Change" );
if( p_vout->b_need_render )
- InvalidateRect( p_vout->p_sys->hwnd, NULL, TRUE );
+ InvalidateRect( p_vout->p_sys->hwnd, NULL, TRUE );
if( DirectXUpdateOverlay( p_vout ) )
/* failed so try again next time */
PostMessage( p_vout->p_sys->hwnd, WM_CHAR, (WPARAM)'S', 0);
if( !p_vout->p_rendered_pic ) return;
- switch( p_vout->p_rendered_pic->i_aspect_ratio )
+ switch( p_vout->p_rendered_pic->i_aspect )
{
case AR_16_9_PICTURE:
if( ((rect_window->right-rect_window->left)*9)