aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-11-11 09:42:26 -0800
committerJoe Wilm <jwilm@users.noreply.github.com>2017-11-11 09:44:32 -0800
commitc5b689784ec0e039b092a6774e4a9496d8dc95b5 (patch)
tree0cd18da76ccac967518093510941db226cac7cb3
parent24fce939b700f61004e41e0019062b9bc79ea233 (diff)
downloadalacritty-c5b689784ec0e039b092a6774e4a9496d8dc95b5.tar.gz
alacritty-c5b689784ec0e039b092a6774e4a9496d8dc95b5.zip
Fix typo and whitespace
-rw-r--r--src/display.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/display.rs b/src/display.rs
index 0d6be1e5..862be468 100644
--- a/src/display.rs
+++ b/src/display.rs
@@ -139,7 +139,7 @@ impl Display {
// Create the window where Alacritty will be displayed
let mut window = Window::new(&options.title)?;
- // get window properties for initializing the other subsytems
+ // get window properties for initializing the other subsystems
let mut viewport_size = window.inner_size_pixels()
.expect("glutin returns window size");
let dpr = window.hidpi_factor();
@@ -155,17 +155,17 @@ impl Display {
let dimensions = options.dimensions()
.unwrap_or_else(|| config.dimensions());
-
+
// Resize window to specified dimensions unless one or both dimensions are 0
if dimensions.columns_u32() > 0 && dimensions.lines_u32() > 0 {
let width = cell_width as u32 * dimensions.columns_u32();
let height = cell_height as u32 * dimensions.lines_u32();
-
+
let new_viewport_size = Size {
width: Pixels(width + 2 * config.padding().x as u32),
height: Pixels(height + 2 * config.padding().y as u32),
};
-
+
window.set_inner_size(&new_viewport_size);
renderer.resize(new_viewport_size.width.0 as _, new_viewport_size.height.0 as _);
viewport_size = new_viewport_size