mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-21 02:18:32 +00:00
Remove NO_ALPHA flag insertion in ColorPicker4::build
This commit is contained in:
parent
f43e33c15d
commit
c2dfef0f4b
@ -886,8 +886,7 @@ where
|
|||||||
/// Builds the color picker.
|
/// Builds the color picker.
|
||||||
///
|
///
|
||||||
/// Returns true if the color value was changed.
|
/// Returns true if the color value was changed.
|
||||||
pub fn build(mut self, ui: &Ui) -> bool {
|
pub fn build(self, ui: &Ui) -> bool {
|
||||||
self.flags.insert(ColorEditFlags::NO_ALPHA);
|
|
||||||
let mut value: [f32; 4] = (*self.value).into().into();
|
let mut value: [f32; 4] = (*self.value).into().into();
|
||||||
let ref_color = self.ref_color.map(|c| c.as_ptr()).unwrap_or(ptr::null());
|
let ref_color = self.ref_color.map(|c| c.as_ptr()).unwrap_or(ptr::null());
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user