mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 06:34:36 +00:00
Extract processing client broadcast messages to a separate function.
This commit is contained in:
parent
b072dbcdc6
commit
c79154c87b
@ -323,14 +323,8 @@ int main( int argc, char** argv )
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void DrawContents()
|
||||
static void UpdateBroadcastClients()
|
||||
{
|
||||
static bool reconnect = false;
|
||||
static std::string reconnectAddr;
|
||||
static uint16_t reconnectPort;
|
||||
static bool showFilter = false;
|
||||
|
||||
#ifndef __EMSCRIPTEN__
|
||||
if( !view )
|
||||
{
|
||||
const auto time = std::chrono::duration_cast<std::chrono::milliseconds>( std::chrono::system_clock::now().time_since_epoch() ).count();
|
||||
@ -473,6 +467,17 @@ static void DrawContents()
|
||||
{
|
||||
clients.clear();
|
||||
}
|
||||
}
|
||||
|
||||
static void DrawContents()
|
||||
{
|
||||
static bool reconnect = false;
|
||||
static std::string reconnectAddr;
|
||||
static uint16_t reconnectPort;
|
||||
static bool showFilter = false;
|
||||
|
||||
#ifndef __EMSCRIPTEN__
|
||||
UpdateBroadcastClients();
|
||||
#endif
|
||||
|
||||
int display_w, display_h;
|
||||
|
Loading…
Reference in New Issue
Block a user