Color button doesn't use ColorFormat :/

This commit is contained in:
Joonas Javanainen 2017-11-05 21:42:55 +02:00
parent ad6a5ada1b
commit 6695f613df
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179

View File

@ -413,19 +413,6 @@ impl<'ui, 'p> ColorButton<'ui, 'p> {
);
self
}
/// Sets the formatting style of color components.
#[inline]
pub fn format(mut self, format: ColorFormat) -> Self {
self.flags.set(
ImGuiColorEditFlags::Uint8,
format == ColorFormat::U8,
);
self.flags.set(
ImGuiColorEditFlags::Float,
format == ColorFormat::Float,
);
self
}
/// Sets the button size.
///
/// Use 0.0 for width and/or height to use the default size.