Skip to content

Commit d3634ce

Browse files
committed
tool: fix render order of annotations and selection border
1 parent 5c25408 commit d3634ce

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/screenshot_tool.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,10 @@ void ScreenshotTool::RenderOverlay()
404404

405405
if (m_state == ToolState::Selecting || m_state == ToolState::Selected || m_state == ToolState::Resizing)
406406
{
407-
HandleSelectionInput();
407+
DrawAnnotations();
408408
DrawDarkOverlay();
409409
DrawSelectionBorder();
410-
DrawAnnotations();
410+
HandleSelectionInput();
411411
}
412412

413413
if (m_state == ToolState::Selected)
@@ -1018,7 +1018,7 @@ void ScreenshotTool::DrawDarkOverlay()
10181018

10191019
void ScreenshotTool::DrawSelectionBorder()
10201020
{
1021-
ImDrawList* draw_list = ImGui::GetForegroundDrawList();
1021+
ImDrawList* draw_list = ImGui::GetBackgroundDrawList();
10221022

10231023
const float sel_x = m_selection.get_x();
10241024
const float sel_y = m_selection.get_y();

0 commit comments

Comments
 (0)