mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-06 04:05:11 +08:00
vgui: remove unneeded SDL calls, remove unused VGUI API function, fix mouse cursor visibility
This commit is contained in:
@@ -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 );
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user