sdlwindow: Do nothing for title or PushUpdate when nested
Waste of cycles.
This commit is contained in:
parent
a5ec3728d9
commit
3f4aa2a75f
1 changed files with 6 additions and 0 deletions
|
@ -260,6 +260,9 @@ void sdlwindow_update( void )
|
|||
|
||||
void sdlwindow_title( const char* title )
|
||||
{
|
||||
if ( !BIsNested() )
|
||||
return;
|
||||
|
||||
title = title ? title : DEFAULT_TITLE;
|
||||
g_SDLWindowTitleLock.lock();
|
||||
if ( g_SDLWindowTitle != title )
|
||||
|
@ -273,5 +276,8 @@ void sdlwindow_title( const char* title )
|
|||
|
||||
void sdlwindow_pushupdate( void )
|
||||
{
|
||||
if ( !BIsNested() )
|
||||
return;
|
||||
|
||||
SDL_PushEvent( &g_SDLUserEvent );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue