Fixed build for linux

This commit is contained in:
Kamay Xutax 2024-08-31 10:07:28 +02:00
parent e4d907c306
commit 82779ee548
2 changed files with 3 additions and 2 deletions

View file

@ -1155,7 +1155,7 @@ void CGame::AttachToWindow()
#if defined( WIN32 )
g_pInputSystem->AttachToWindow( (void *)m_hWindow, IsFullscreen(m_hWindow) );
#else
g_pInputSystem->AttachToWindow( (void *)m_pSDLWindow );
g_pInputSystem->AttachToWindow( (void *)m_pSDLWindow, SDL_GetWindowFlags(m_pSDLWindow) & SDL_WINDOW_FULLSCREEN );
#endif
g_pInputSystem->EnableInput( true );
g_pInputSystem->EnableMessagePump( false );

View file

@ -15,7 +15,6 @@
#include "tier0/icommandline.h"
#include "tier3/tier3.h"
#include "vgui/IInput.h"
#include <winuser.h>
#if defined( USE_SDL )
#undef M_PI
@ -357,6 +356,7 @@ void CInputSystem::SetFullScreenMode( bool state )
{
g_IsFullScreen = state;
#if defined( PLATFORM_WINDOWS )
if ( m_bRawInputSupported )
{
RAWINPUTDEVICE Rid[1];
@ -374,6 +374,7 @@ void CInputSystem::SetFullScreenMode( bool state )
Rid[0].hwndTarget = m_hAttachedHWnd; // GetHhWnd;
pfnRegisterRawInputDevices(Rid, ARRAYSIZE(Rid), sizeof(Rid[0]));
}
#endif
}
//-----------------------------------------------------------------------------