fix: Double -> Float truncation

This commit is contained in:
WerWolv
2025-02-16 11:49:32 +01:00
parent ee52ff3b11
commit bc26ade57e

View File

@@ -43,7 +43,7 @@ namespace hex::plugin::builtin {
const auto diameter = 800_scaled;
const auto pos = ImHexApi::System::getMainWindowPosition() - ImVec2(0, diameter / 2);
ImGui::GetWindowDrawList()->AddShadowCircle(pos, diameter / 2, ImGui::GetColorU32(ImGuiCol_ButtonActive, 0.8), diameter / 4, ImVec2());
ImGui::GetWindowDrawList()->AddShadowCircle(pos, diameter / 2, ImGui::GetColorU32(ImGuiCol_ButtonActive, 0.8F), diameter / 4, ImVec2());
}
void createNestedMenu(std::span<const UnlocalizedString> menuItems, const char *icon, const Shortcut &shortcut, View *view, const ContentRegistry::Interface::impl::MenuCallback &callback, const ContentRegistry::Interface::impl::EnabledCallback &enabledCallback, const ContentRegistry::Interface::impl::SelectedCallback &selectedCallback) {