Fix ImageButton bool return value for pressed.

This was a regression in 0.2.0
This commit is contained in:
Johan Andersson 2019-09-09 11:20:58 +02:00
parent 98f508412d
commit 4cde7cacf3

View File

@ -129,7 +129,7 @@ impl ImageButton {
self
}
/// Builds the image button
pub fn build(self, _: &Ui) {
pub fn build(self, _: &Ui) -> bool {
unsafe {
sys::igImageButton(
self.texture_id.id() as *mut c_void,
@ -139,7 +139,7 @@ impl ImageButton {
self.frame_padding,
self.bg_col.into(),
self.tint_col.into(),
);
)
}
}
}