Skip to content

Commit

Permalink
Merge pull request #579 from kazatsuyu/fix/color-picker-alpha
Browse files Browse the repository at this point in the history
Remove NO_ALPHA flag insertion in ColorPicker4::build
  • Loading branch information
dbr committed Dec 4, 2021
2 parents f43e33c + c2dfef0 commit 352b5d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions imgui/src/widget/color_editors.rs
Expand Up @@ -886,8 +886,7 @@ where
/// Builds the color picker.
///
/// Returns true if the color value was changed.
pub fn build(mut self, ui: &Ui) -> bool {
self.flags.insert(ColorEditFlags::NO_ALPHA);
pub fn build(self, ui: &Ui) -> bool {
let mut value: [f32; 4] = (*self.value).into().into();
let ref_color = self.ref_color.map(|c| c.as_ptr()).unwrap_or(ptr::null());

Expand Down

0 comments on commit 352b5d0

Please sign in to comment.