Skip to content

Commit

Permalink
Rename with_resize_scaling to with_automatic_console_resize to better…
Browse files Browse the repository at this point in the history
… describe what the option does. #100
  • Loading branch information
thebracket committed Mar 10, 2020
1 parent 5b82e2f commit f52e336
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ amethyst_engine_metal = [ "bracket-terminal/amethyst_engine_metal" ]

[dependencies]
bracket-algorithm-traits = { path = "bracket-algorithm-traits/" }
bracket-color = { path = "bracket-color/", features = [ "rex" ] }
bracket-color = { path = "bracket-color/", features = [ "rex", "palette" ] }
bracket-geometry = { path = "bracket-geometry/" }
bracket-noise = { path = "bracket-noise/" }
bracket-pathfinding = { path = "bracket-pathfinding/" }
Expand Down
2 changes: 1 addition & 1 deletion bracket-terminal/examples/bench_scalable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fn main() -> BError {
.unwrap()
.with_title("bracket-lib benchmark")
.with_vsync(false)
.with_resize_scaling(true)
.with_automatic_console_resize(true)
.build()?;
main_loop(context, State::new())
}
2 changes: 1 addition & 1 deletion bracket-terminal/src/initializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ impl BTermBuilder {

/// Enable resize changing console size, rather than scaling. Native OpenGL only.
#[cfg(all(feature = "opengl", not(target_arch = "wasm32")))]
pub fn with_resize_scaling(mut self, resize_scaling: bool) -> Self {
pub fn with_automatic_console_resize(mut self, resize_scaling: bool) -> Self {
self.platform_hints.resize_scaling = resize_scaling;
self
}
Expand Down

0 comments on commit f52e336

Please sign in to comment.