mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-26 13:37:00 +00:00
Fixed coding style.
This commit is contained in:
parent
5abb39cb1f
commit
37716184b3
@ -6909,12 +6909,14 @@ bool ImGui::CheckboxFlags(const char* label, unsigned int* flags, unsigned int f
|
|||||||
{
|
{
|
||||||
bool v = ((*flags & flags_value) == flags_value);
|
bool v = ((*flags & flags_value) == flags_value);
|
||||||
bool pressed = ImGui::Checkbox(label, &v);
|
bool pressed = ImGui::Checkbox(label, &v);
|
||||||
if(pressed) {
|
if (pressed)
|
||||||
|
{
|
||||||
if (v)
|
if (v)
|
||||||
*flags |= flags_value;
|
*flags |= flags_value;
|
||||||
else
|
else
|
||||||
*flags &= ~flags_value;
|
*flags &= ~flags_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return pressed;
|
return pressed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user