vgui: remove unneeded SDL calls, remove unused VGUI API function, fix mouse cursor visibility

This commit is contained in:
Alibek Omarov
2022-01-04 08:13:57 +03:00
committed by a1batross
parent 7e687b45bb
commit f63d2d747f
3 changed files with 14 additions and 41 deletions

View File

@@ -92,7 +92,11 @@ bool CEngineSurface :: hasFocus( void )
void CEngineSurface :: setCursor( Cursor *cursor )
{
_currentCursor = cursor;
g_api->CursorSelect( (VGUI_DefaultCursor)cursor->getDefaultCursor() );
if( cursor )
{
g_api->CursorSelect( (VGUI_DefaultCursor)cursor->getDefaultCursor() );
}
}
void CEngineSurface :: SetupPaintState( const PaintStack *paintState )
@@ -428,15 +432,9 @@ void CEngineSurface :: popMakeCurrent( Panel *panel )
bool CEngineSurface :: setFullscreenMode( int wide, int tall, int bpp )
{
// NOTE: Xash3D always working in 32-bit mode
// Skip it now. VGUI cannot change video modes
return false;
}
void CEngineSurface :: setWindowedMode( void )
{
// Skip it now. VGUI cannot change video modes
/*
Cvar_SetFloat( "fullscreen", 0.0f );
*/
}