Skip to content

Commit

Permalink
fix(cover): init variables with value of 1
Browse files Browse the repository at this point in the history
  • Loading branch information
HurricanePootis committed Oct 16, 2024
1 parent bfa5653 commit 5f13c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/cover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl CoverView {
pub fn new(queue: Arc<Queue>, library: Arc<Library>, config: &Config) -> Self {
// Determine size of window both in pixels and chars
let (rows, cols, mut xpixels, mut ypixels) = unsafe {
let query: (u16, u16, u16, u16) = (0, 0, 0, 0);
let query: (u16, u16, u16, u16) = (1, 1, 0, 0);
ioctl(1, TIOCGWINSZ, &query);
query
};
Expand Down

0 comments on commit 5f13c3b

Please sign in to comment.