mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-02 02:52:40 +00:00
GUI: fix InvCheckbox not working at all
This commit is contained in:
parent
6a3def514a
commit
8c551afd83
1 changed files with 1 additions and 1 deletions
|
@ -494,7 +494,7 @@ bool FurnaceGUI::CWVSliderInt(const char* label, const ImVec2& size, int* v, int
|
|||
bool FurnaceGUI::InvCheckbox(const char* label, bool* value) {
|
||||
bool t=!(*value);
|
||||
if (ImGui::Checkbox(label,&t)) {
|
||||
*value=t;
|
||||
*value=!t;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue