Remove obsolete window flag.

This commit is contained in:
Bartosz Taudul 2018-01-13 13:56:02 +01:00
parent 9330e950da
commit 961a907e09
2 changed files with 8 additions and 8 deletions

View File

@ -1738,7 +1738,7 @@ void View::DrawImpl()
{ {
if( !m_hasData.load( std::memory_order_acquire ) ) if( !m_hasData.load( std::memory_order_acquire ) )
{ {
ImGui::Begin( m_addr.c_str(), nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_ShowBorders ); ImGui::Begin( m_addr.c_str(), nullptr, ImGuiWindowFlags_AlwaysAutoResize );
ImGui::Text( "Waiting for connection..." ); ImGui::Text( "Waiting for connection..." );
ImGui::End(); ImGui::End();
return; return;
@ -1750,7 +1750,7 @@ void View::DrawImpl()
} }
std::lock_guard<NonRecursiveBenaphore> lock( m_lock ); std::lock_guard<NonRecursiveBenaphore> lock( m_lock );
ImGui::Begin( m_captureName.c_str(), nullptr, ImGuiWindowFlags_ShowBorders | ImGuiWindowFlags_NoScrollbar ); ImGui::Begin( m_captureName.c_str(), nullptr, ImGuiWindowFlags_NoScrollbar );
if( ImGui::Button( m_pause ? "Resume" : "Pause", ImVec2( 70, 0 ) ) ) m_pause = !m_pause; if( ImGui::Button( m_pause ? "Resume" : "Pause", ImVec2( 70, 0 ) ) ) m_pause = !m_pause;
ImGui::SameLine(); ImGui::SameLine();
if( ImGui::Button( "Options", ImVec2( 70, 0 ) ) ) m_showOptions = true; if( ImGui::Button( "Options", ImVec2( 70, 0 ) ) ) m_showOptions = true;
@ -1796,7 +1796,7 @@ void View::DrawConnection()
{ {
std::lock_guard<NonRecursiveBenaphore> lock( m_mbpslock ); std::lock_guard<NonRecursiveBenaphore> lock( m_mbpslock );
ImGui::Begin( m_addr.c_str(), nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_ShowBorders ); ImGui::Begin( m_addr.c_str(), nullptr, ImGuiWindowFlags_AlwaysAutoResize );
const auto mbps = m_mbps.back(); const auto mbps = m_mbps.back();
char buf[64]; char buf[64];
if( mbps < 0.1f ) if( mbps < 0.1f )
@ -3851,7 +3851,7 @@ void View::DrawZoneInfoWindow()
int dmul = 1; int dmul = 1;
bool show = true; bool show = true;
ImGui::Begin( "Zone info", &show, ImGuiWindowFlags_ShowBorders ); ImGui::Begin( "Zone info", &show );
if( ImGui::Button( "Zoom to zone" ) ) if( ImGui::Button( "Zoom to zone" ) )
{ {
@ -3959,7 +3959,7 @@ void View::DrawGpuInfoWindow()
auto& ev = *m_gpuInfoWindow; auto& ev = *m_gpuInfoWindow;
bool show = true; bool show = true;
ImGui::Begin( "Zone info", &show, ImGuiWindowFlags_ShowBorders ); ImGui::Begin( "Zone info", &show );
if( ImGui::Button( "Zoom to zone" ) ) if( ImGui::Button( "Zoom to zone" ) )
{ {
@ -4051,7 +4051,7 @@ void View::DrawGpuInfoWindow()
void View::DrawOptions() void View::DrawOptions()
{ {
const auto tw = ImGui::GetFontSize(); const auto tw = ImGui::GetFontSize();
ImGui::Begin( "Options", &m_showOptions, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_ShowBorders ); ImGui::Begin( "Options", &m_showOptions, ImGuiWindowFlags_AlwaysAutoResize );
ImGui::Checkbox( "Draw GPU zones", &m_drawGpuZones ); ImGui::Checkbox( "Draw GPU zones", &m_drawGpuZones );
ImGui::Indent( tw ); ImGui::Indent( tw );
for( size_t i=0; i<m_gpuData.size(); i++ ) for( size_t i=0; i<m_gpuData.size(); i++ )
@ -4101,7 +4101,7 @@ void View::DrawOptions()
void View::DrawMessages() void View::DrawMessages()
{ {
ImGui::Begin( "Messages", &m_showMessages, ImGuiWindowFlags_ShowBorders ); ImGui::Begin( "Messages", &m_showMessages );
for( auto& v : m_messages ) for( auto& v : m_messages )
{ {
char tmp[64 * 1024]; char tmp[64 * 1024];

View File

@ -68,7 +68,7 @@ int main(int, char**)
if( !view ) if( !view )
{ {
ImGui::Begin( "Connect to...", nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_ShowBorders ); ImGui::Begin( "Connect to...", nullptr, ImGuiWindowFlags_AlwaysAutoResize );
ImGui::InputText( "Address", addr, 1024 ); ImGui::InputText( "Address", addr, 1024 );
if( ImGui::Button( "Connect" ) && *addr ) if( ImGui::Button( "Connect" ) && *addr )
{ {