mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-17 08:28:44 +00:00
Fix ImageButton bool return value for pressed.
This was a regression in 0.2.0
This commit is contained in:
parent
98f508412d
commit
4cde7cacf3
@ -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(),
|
||||
);
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user