diff --git a/CHANGELOG.markdown b/CHANGELOG.markdown index 6fab0b0..79e644c 100644 --- a/CHANGELOG.markdown +++ b/CHANGELOG.markdown @@ -36,6 +36,8 @@ - A large number of small functions are now `#[inline]`, but many still aren't, so you probably will want to build with LTO for release builds if you use `imgui` heavily. +- The `io.config_windows_memory_compact_timer` flag has been renamed to `io.config_memory_compact_timer`. This follows the similar rename in the C++ ImGui, and was done because it no longer only applies to window memory usage. + ## [0.6.1] - 2020-12-16 - Support for winit 0.24.x diff --git a/imgui/src/io.rs b/imgui/src/io.rs index 6502bfb..8bf1959 100644 --- a/imgui/src/io.rs +++ b/imgui/src/io.rs @@ -200,10 +200,10 @@ pub struct Io { /// /// Windows without a title bar are not affected. pub config_windows_move_from_title_bar_only: bool, - /// Compact window memory usage when unused. + /// Compact memory usage when unused. /// /// Set to -1.0 to disable. - pub config_windows_memory_compact_timer: f32, + pub config_memory_compact_timer: f32, pub(crate) backend_platform_name: *const c_char, pub(crate) backend_renderer_name: *const c_char,