mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
build: Make ImHex fully compile with warnings enabled in MSVC
This commit is contained in:
@@ -283,7 +283,7 @@ namespace hex::init {
|
||||
const auto highlightBytes = [&](ImVec2 start, size_t count, ImColor color, float opacity) {
|
||||
// Dimensions and number of bytes that are drawn. Taken from the splash screen image
|
||||
const auto hexSize = ImVec2(29, 18);
|
||||
const auto hexSpacing = ImVec2(17.4, 15);
|
||||
const auto hexSpacing = ImVec2(17.4F, 15);
|
||||
const auto hexStart = ImVec2(27, 127);
|
||||
|
||||
constexpr auto HexCount = ImVec2(13, 7);
|
||||
|
||||
@@ -406,7 +406,7 @@ namespace hex {
|
||||
ImGuiExt::UnderlinedText("Plugin folders");
|
||||
if (ImGui::BeginTable("plugins", 2, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_ScrollY | ImGuiTableFlags_SizingFixedFit, ImVec2(0, 100_scaled))) {
|
||||
ImGui::TableSetupScrollFreeze(0, 1);
|
||||
ImGui::TableSetupColumn("Path", ImGuiTableColumnFlags_WidthStretch, 0.2);
|
||||
ImGui::TableSetupColumn("Path", ImGuiTableColumnFlags_WidthStretch, 0.2F);
|
||||
ImGui::TableSetupColumn("Exists", ImGuiTableColumnFlags_WidthFixed, ImGui::GetTextLineHeight() * 3);
|
||||
|
||||
ImGui::TableHeadersRow();
|
||||
@@ -649,7 +649,7 @@ namespace hex {
|
||||
auto prevShadowOffset = style.WindowShadowOffsetDist;
|
||||
auto prevShadowAngle = style.WindowShadowOffsetAngle;
|
||||
style.WindowShadowOffsetDist = 12_scaled;
|
||||
style.WindowShadowOffsetAngle = 0.5 * std::numbers::pi;
|
||||
style.WindowShadowOffsetAngle = 0.5F * std::numbers::pi_v<float>;
|
||||
ON_SCOPE_EXIT {
|
||||
style.WindowShadowOffsetDist = prevShadowOffset;
|
||||
style.WindowShadowOffsetAngle = prevShadowAngle;
|
||||
|
||||
Reference in New Issue
Block a user