Skip to content

Commit

Permalink
Restored transparent overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemony committed Jul 19, 2024
1 parent fbe42af commit 8734076
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/SKIV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1944,14 +1944,11 @@ wWinMain ( _In_ HINSTANCE hInstance,
(HDR_Image && SKIV_HDR) ? hdr_uv0 : srgb_uv0,
(HDR_Image && SKIV_HDR) ? hdr_uv1 : srgb_uv1);

// This visual feedback is unnecessary given snipping now defaults to drawing a rectangle around
// the nearest window to the cursor when initiated...
//
//ImDrawList* draw_list =
// ImGui::GetForegroundDrawList ();

//// Draw a slightly dark transparent overlay on top of the captured image
//draw_list->AddRectFilled (ImVec2 (0, 0), SKIV_DesktopImage._resolution, ImGui::GetColorU32 (IM_COL32(20, 20, 20, 80)));
ImDrawList* draw_list =
ImGui::GetForegroundDrawList ();

// Draw a slightly dark transparent overlay on top of the captured image
draw_list->AddRectFilled (ImVec2 (0, 0), SKIV_DesktopImage._resolution, ImGui::GetColorU32 (IM_COL32 (0, 0, 0, 20)));
}

static ImRect selection;
Expand Down

0 comments on commit 8734076

Please sign in to comment.