1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: Unnecessary reinterpret_cast

This commit is contained in:
WerWolv 2024-01-04 21:33:30 +01:00
parent 464495987a
commit f91505ff09

View File

@ -38,7 +38,7 @@ namespace hex::plugin::builtin {
auto color = handler.getFunction(colorId);
// Draw a color picker for the color
if (ImGui::ColorEdit4(colorName.c_str(), reinterpret_cast<float*>(&color.Value), ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_AlphaBar | ImGuiColorEditFlags_AlphaPreviewHalf)) {
if (ImGui::ColorEdit4(colorName.c_str(), &color.Value.x, ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_AlphaBar | ImGuiColorEditFlags_AlphaPreviewHalf)) {
// Update the color value
handler.setFunction(colorId, color);
EventThemeChanged::post();