Fixed build for linux
This commit is contained in:
parent
e4d907c306
commit
82779ee548
2 changed files with 3 additions and 2 deletions
|
@ -1155,7 +1155,7 @@ void CGame::AttachToWindow()
|
||||||
#if defined( WIN32 )
|
#if defined( WIN32 )
|
||||||
g_pInputSystem->AttachToWindow( (void *)m_hWindow, IsFullscreen(m_hWindow) );
|
g_pInputSystem->AttachToWindow( (void *)m_hWindow, IsFullscreen(m_hWindow) );
|
||||||
#else
|
#else
|
||||||
g_pInputSystem->AttachToWindow( (void *)m_pSDLWindow );
|
g_pInputSystem->AttachToWindow( (void *)m_pSDLWindow, SDL_GetWindowFlags(m_pSDLWindow) & SDL_WINDOW_FULLSCREEN );
|
||||||
#endif
|
#endif
|
||||||
g_pInputSystem->EnableInput( true );
|
g_pInputSystem->EnableInput( true );
|
||||||
g_pInputSystem->EnableMessagePump( false );
|
g_pInputSystem->EnableMessagePump( false );
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
#include "tier0/icommandline.h"
|
#include "tier0/icommandline.h"
|
||||||
#include "tier3/tier3.h"
|
#include "tier3/tier3.h"
|
||||||
#include "vgui/IInput.h"
|
#include "vgui/IInput.h"
|
||||||
#include <winuser.h>
|
|
||||||
|
|
||||||
#if defined( USE_SDL )
|
#if defined( USE_SDL )
|
||||||
#undef M_PI
|
#undef M_PI
|
||||||
|
@ -357,6 +356,7 @@ void CInputSystem::SetFullScreenMode( bool state )
|
||||||
{
|
{
|
||||||
g_IsFullScreen = state;
|
g_IsFullScreen = state;
|
||||||
|
|
||||||
|
#if defined( PLATFORM_WINDOWS )
|
||||||
if ( m_bRawInputSupported )
|
if ( m_bRawInputSupported )
|
||||||
{
|
{
|
||||||
RAWINPUTDEVICE Rid[1];
|
RAWINPUTDEVICE Rid[1];
|
||||||
|
@ -374,6 +374,7 @@ void CInputSystem::SetFullScreenMode( bool state )
|
||||||
Rid[0].hwndTarget = m_hAttachedHWnd; // GetHhWnd;
|
Rid[0].hwndTarget = m_hAttachedHWnd; // GetHhWnd;
|
||||||
pfnRegisterRawInputDevices(Rid, ARRAYSIZE(Rid), sizeof(Rid[0]));
|
pfnRegisterRawInputDevices(Rid, ARRAYSIZE(Rid), sizeof(Rid[0]));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue