Merge pull request #804 from Kethku/fix-maximize

Fix maximize
macos-click-through
partizan 4 years ago committed by GitHub
commit ebe01fc445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -252,7 +252,7 @@ impl CachingShaper {
pub fn shape(&mut self, cells: &[String], bold: bool, italic: bool) -> Vec<TextBlob> {
let current_size = self.current_size();
let (glyph_width, glyph_height) = self.font_base_dimensions();
let (glyph_width, _glyph_height) = self.font_base_dimensions();
let mut resulting_blobs = Vec::new();

@ -226,7 +226,9 @@ pub fn start_loop(
let initial_inner_size =
get_initial_window_size(initial_size, (renderer.font_width, renderer.font_height));
window.set_inner_size(initial_inner_size);
if !window.is_maximized() {
window.set_inner_size(initial_inner_size);
}
log::info!(
"window created (scale_factor: {}, font_size: {}x{})",

Loading…
Cancel
Save