Skip to content

Commit

Permalink
Fixed a bug where get_time() returned bogus values
Browse files Browse the repository at this point in the history
  • Loading branch information
agersant committed Apr 17, 2019
1 parent 09bff25 commit 21a2b1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imgui-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ extern "C" {
pub fn igSetItemAllowOverlap();
pub fn igIsRectVisible(size: ImVec2) -> bool;
pub fn igIsRectVisibleVec2(rect_min: ImVec2, rect_max: ImVec2) -> bool;
pub fn igGetTime() -> c_float;
pub fn igGetTime() -> c_double;
pub fn igGetFrameCount() -> c_int;
pub fn igGetOverlayDrawList() -> *mut ImDrawList;
pub fn igGetDrawListSharedData() -> *mut ImDrawListSharedData;
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ impl ImGui {
sys::ImGuiIO_AddInputCharactersUTF8(self.io_mut(), buf.as_ptr() as *const _);
}
}
pub fn get_time(&self) -> f32 {
pub fn get_time(&self) -> f64 {
unsafe { sys::igGetTime() }
}
pub fn get_frame_count(&self) -> i32 {
Expand Down

0 comments on commit 21a2b1c

Please sign in to comment.