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 ) )
{
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::End();
return;
@ -1750,7 +1750,7 @@ void View::DrawImpl()
}
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;
ImGui::SameLine();
if( ImGui::Button( "Options", ImVec2( 70, 0 ) ) ) m_showOptions = true;
@ -1796,7 +1796,7 @@ void View::DrawConnection()
{
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();
char buf[64];
if( mbps < 0.1f )
@ -3851,7 +3851,7 @@ void View::DrawZoneInfoWindow()
int dmul = 1;
bool show = true;
ImGui::Begin( "Zone info", &show, ImGuiWindowFlags_ShowBorders );
ImGui::Begin( "Zone info", &show );
if( ImGui::Button( "Zoom to zone" ) )
{
@ -3959,7 +3959,7 @@ void View::DrawGpuInfoWindow()
auto& ev = *m_gpuInfoWindow;
bool show = true;
ImGui::Begin( "Zone info", &show, ImGuiWindowFlags_ShowBorders );
ImGui::Begin( "Zone info", &show );
if( ImGui::Button( "Zoom to zone" ) )
{
@ -4051,7 +4051,7 @@ void View::DrawGpuInfoWindow()
void View::DrawOptions()
{
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::Indent( tw );
for( size_t i=0; i<m_gpuData.size(); i++ )
@ -4101,7 +4101,7 @@ void View::DrawOptions()
void View::DrawMessages()
{
ImGui::Begin( "Messages", &m_showMessages, ImGuiWindowFlags_ShowBorders );
ImGui::Begin( "Messages", &m_showMessages );
for( auto& v : m_messages )
{
char tmp[64 * 1024];

View File

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