mirror of
https://github.com/Drezil/imgui.git
synced 2025-08-02 01:53:16 +02:00
ColorPicker3: Fixed
This commit is contained in:
@ -8741,7 +8741,7 @@ bool ImGui::ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags fl
|
|||||||
float col4[4] = { col[0], col[1], col[2], 1.0f };
|
float col4[4] = { col[0], col[1], col[2], 1.0f };
|
||||||
if (!ColorPicker4(label, col4, flags & ~ImGuiColorEditFlags_Alpha))
|
if (!ColorPicker4(label, col4, flags & ~ImGuiColorEditFlags_Alpha))
|
||||||
return false;
|
return false;
|
||||||
col[0] = col4[1]; col[1] = col4[1]; col[2] = col4[2];
|
col[0] = col4[0]; col[1] = col4[1]; col[2] = col4[2];
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user