Skip to content

Commit

Permalink
Temp disable HDR related -1024x-2048 signals ?
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemony committed Jun 24, 2024
1 parent 5fdc93b commit 8004b50
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/SKIV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1795,13 +1795,15 @@ wWinMain ( _In_ HINSTANCE hInstance,
}
}

SKIF_ImGui_OptImage (SKIV_DesktopImage, vDesktopSize, ImVec2 (-1024.0f, -1024.0f),
ImVec2 (-2048.0f, -2048.0f));
//SKIF_ImGui_OptImage (SKIV_DesktopImage, vDesktopSize, ImVec2 (-1024.0f, -1024.0f),
// ImVec2 (-2048.0f, -2048.0f));

SKIF_ImGui_OptImage (SKIV_DesktopImage, vDesktopSize);

//ImDrawList* draw_list =
// ImGui::GetForegroundDrawList ();
ImDrawList* draw_list =
ImGui::GetForegroundDrawList ();

//draw_list->AddRectFilled (monitor_extent.Min, vDesktopSize, ImGui::GetColorU32 (IM_COL32(20,20,20,128))); // Background
draw_list->AddRectFilled (ImVec2 (0, 0), vDesktopSize, ImGui::GetColorU32 (IM_COL32(20, 20, 20, 128))); // Background
}

static ImRect selection;
Expand Down Expand Up @@ -1989,7 +1991,7 @@ wWinMain ( _In_ HINSTANCE hInstance,

static bool clicked = false;

if (! clicked && SKIF_ImGui_SelectionRect (&selection, allowable, 0, SelectionFlag_None))
if (! clicked && SKIF_ImGui_SelectionRect (&selection, allowable, 0, SelectionFlag_Filled))
{
_registry._SnippingModeExit = true;
capture_area = selection;
Expand Down

0 comments on commit 8004b50

Please sign in to comment.