Skip to content

Commit

Permalink
v3
Browse files Browse the repository at this point in the history
  • Loading branch information
kchibisov committed Dec 28, 2024
1 parent 05b0221 commit ebb44b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ impl fmt::Display for VideoMode {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}x{}", self.size.width, self.size.height)?;

if let Some(refresh_rate) = self.refresh_rate_millihertz.as_ref() {
if let Some(refresh_rate) = self.refresh_rate_millihertz {
write!(f, "@{refresh_rate}mHz")?;
}

if let Some(bit_depth) = self.bit_depth.as_ref() {
if let Some(bit_depth) = self.bit_depth {
write!(f, " ({bit_depth} bpp)")?;
}

Expand Down
2 changes: 1 addition & 1 deletion src/platform_impl/linux/wayland/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl std::hash::Hash for MonitorHandle {
}
}

/// Convert the wayland's [`Mode`] to winit's [`VideoMode`].
/// Convert Wayland's [`Mode`] to winit's [`VideoMode`].
fn wayland_mode_to_core_mode(mode: Mode) -> VideoMode {
VideoMode {
size: (mode.dimensions.0, mode.dimensions.1).into(),
Expand Down

0 comments on commit ebb44b1

Please sign in to comment.