Remove debug info

This commit is contained in:
brunoherbelin
2020-09-26 20:02:36 +02:00
parent 89891a18e5
commit 39ceea9690
2 changed files with 4 additions and 11 deletions

View File

@@ -1834,8 +1834,9 @@ void SourcePreview::Render(float width, bool controlbutton)
source_->render();
// draw preview
ImVec2 preview_size(width, width / source_->frame()->aspectRatio());
ImGui::Image((void*)(uintptr_t) source_->frame()->texture(), preview_size);
FrameBuffer *frame = source_->frame();
ImVec2 preview_size(width, width / frame->aspectRatio());
ImGui::Image((void*)(uintptr_t) frame->texture(), preview_size);
if (controlbutton && source_->ready()) {
ImVec2 pos = ImGui::GetCursorPos();
@@ -1845,6 +1846,7 @@ void SourcePreview::Render(float width, bool controlbutton)
ImGui::SetCursorPos(pos);
}
ImGui::Text("%s ", label_.c_str());
ImGui::Text("%d x %d %s", frame->width(), frame->height(), frame->use_alpha() ? "RGBA" : "RGB");
}
}
}