Skip to content

Commit aafa6ce

Browse files
committed
Tweak expression to be less weird (how did that ever happen?)
1 parent 3141df1 commit aafa6ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9697,7 +9697,7 @@ bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flag
96979697
if (n + 1 == components)
96989698
PushItemWidth(w_item_last);
96999699
if (flags & ImGuiColorEditFlags_Float)
9700-
value_changed |= value_changed_as_float |= DragFloat(ids[n], &f[n], 1.0f/255.0f, 0.0f, hdr ? 0.0f : 1.0f, fmt_table_float[fmt_idx][n]);
9700+
value_changed = value_changed_as_float = value_changed | DragFloat(ids[n], &f[n], 1.0f/255.0f, 0.0f, hdr ? 0.0f : 1.0f, fmt_table_float[fmt_idx][n]);
97019701
else
97029702
value_changed |= DragInt(ids[n], &i[n], 1.0f, 0, hdr ? 0 : 255, fmt_table_int[fmt_idx][n]);
97039703
if (!(flags & ImGuiColorEditFlags_NoOptions))

0 commit comments

Comments
 (0)