diff --git a/RenderingManager.cpp b/RenderingManager.cpp index b71abdb..3aa33ab 100644 --- a/RenderingManager.cpp +++ b/RenderingManager.cpp @@ -502,9 +502,6 @@ GLFWmonitor *RenderingWindow::monitor() // pick at the coordinates given or at pos of window int x, y; glfwGetWindowPos(window_, &x, &y); - - Log::Info("testing window monitor at %d %d", x, y ); - return monitorAt(x, y); } @@ -594,14 +591,10 @@ bool RenderingWindow::init(int id, GLFWwindow *share) Log::Error("Failed to create GLFW Window %d", id_); return false; } - Log::Info("Window size %d %d", winset.w, winset.h); - // set position glfwSetWindowPos(window_, winset.x, winset.y); - Log::Info("Window position %d %d", winset.x, winset.y); - /// CALLBACKS // store global ref to pointers (used by callbacks) GLFW_window_[window_] = this; @@ -631,8 +624,6 @@ bool RenderingWindow::init(int id, GLFWwindow *share) // DPI scaling (retina) dpi_scale_ = float(window_attributes_.viewport.y) / float(winset.h); - Log::Info("Window Frame Buffer sixe %d %d", window_attributes_.viewport.x, window_attributes_.viewport.y); - // This hint can improve the speed of texturing when perspective-correct texture coordinate interpolation isn't needed glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST); // diff --git a/UserInterfaceManager.cpp b/UserInterfaceManager.cpp index 535b13e..c31ca7b 100644 --- a/UserInterfaceManager.cpp +++ b/UserInterfaceManager.cpp @@ -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"); } } }