Commit db2014f4 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

msw vouts: Remove UNICODE ifdef

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 70ba5804
...@@ -240,11 +240,7 @@ static int OpenVideo( vlc_object_t *p_this ) ...@@ -240,11 +240,7 @@ static int OpenVideo( vlc_object_t *p_this )
p_vout->p_sys->MonitorFromWindow = (HMONITOR (WINAPI *)( HWND, DWORD )) p_vout->p_sys->MonitorFromWindow = (HMONITOR (WINAPI *)( HWND, DWORD ))
GetProcAddress( huser32, _T("MonitorFromWindow") ); GetProcAddress( huser32, _T("MonitorFromWindow") );
p_vout->p_sys->GetMonitorInfo = p_vout->p_sys->GetMonitorInfo =
#ifndef UNICODE
GetProcAddress( huser32, "GetMonitorInfoA" );
#else
GetProcAddress( huser32, _T("GetMonitorInfoW") ); GetProcAddress( huser32, _T("GetMonitorInfoW") );
#endif
} }
var_Create( p_vout, "overlay", VLC_VAR_BOOL | VLC_VAR_DOINHERIT ); var_Create( p_vout, "overlay", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
...@@ -842,11 +838,7 @@ static int DirectXInitDDraw( vout_thread_t *p_vout ) ...@@ -842,11 +838,7 @@ static int DirectXInitDDraw( vout_thread_t *p_vout )
OurDirectDrawEnumerateEx = OurDirectDrawEnumerateEx =
(void *)GetProcAddress( p_vout->p_sys->hddraw_dll, (void *)GetProcAddress( p_vout->p_sys->hddraw_dll,
#ifndef UNICODE
"DirectDrawEnumerateExA" );
#else
_T("DirectDrawEnumerateExW") ); _T("DirectDrawEnumerateExW") );
#endif
if( OurDirectDrawEnumerateEx && p_vout->p_sys->MonitorFromWindow ) if( OurDirectDrawEnumerateEx && p_vout->p_sys->MonitorFromWindow )
{ {
...@@ -2027,11 +2019,7 @@ static int FindDevicesCallback( vlc_object_t *p_this, char const *psz_name, ...@@ -2027,11 +2019,7 @@ static int FindDevicesCallback( vlc_object_t *p_this, char const *psz_name,
if( hddraw_dll == NULL ) return VLC_SUCCESS; if( hddraw_dll == NULL ) return VLC_SUCCESS;
OurDirectDrawEnumerateEx = OurDirectDrawEnumerateEx =
#ifndef UNICODE
(void *)GetProcAddress( hddraw_dll, "DirectDrawEnumerateExA" );
#else
(void *)GetProcAddress( hddraw_dll, _T("DirectDrawEnumerateExW") ); (void *)GetProcAddress( hddraw_dll, _T("DirectDrawEnumerateExW") );
#endif
if( OurDirectDrawEnumerateEx ) if( OurDirectDrawEnumerateEx )
{ {
......
...@@ -343,7 +343,6 @@ void* EventThread( vlc_object_t *p_this ) ...@@ -343,7 +343,6 @@ void* EventThread( vlc_object_t *p_this )
#endif #endif
} }
#ifdef UNICODE
{ {
wchar_t *psz_title = malloc( strlen(val.psz_string) * 2 + 2 ); wchar_t *psz_title = malloc( strlen(val.psz_string) * 2 + 2 );
if( psz_title ) if( psz_title )
...@@ -353,7 +352,6 @@ void* EventThread( vlc_object_t *p_this ) ...@@ -353,7 +352,6 @@ void* EventThread( vlc_object_t *p_this )
free( val.psz_string ); val.psz_string = (char *)psz_title; free( val.psz_string ); val.psz_string = (char *)psz_title;
} }
} }
#endif
SetWindowText( p_event->p_vout->p_sys->hwnd, SetWindowText( p_event->p_vout->p_sys->hwnd,
(LPCTSTR)val.psz_string ); (LPCTSTR)val.psz_string );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment