Skip to content

Commit

Permalink
Reorder method.
Browse files Browse the repository at this point in the history
  • Loading branch information
thejpster committed Oct 1, 2023
1 parent 1ad4c52 commit 6be7c23
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/video.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ impl Mode {
const HORIZ_2X_SHIFT: usize = 3;
const FORMAT_SHIFT: usize = 0;

/// Create a new video mode
#[inline]
pub const fn new(timing: Timing, format: Format) -> Mode {
Self::new_with_scaling(timing, format, Scaling::None)
}

/// Create a new video mode
#[inline]
pub const fn new_with_scaling(timing: Timing, format: Format, scaling: Scaling) -> Mode {
Expand All @@ -200,12 +206,6 @@ impl Mode {
Mode(mode)
}

/// Create a new video mode
#[inline]
pub const fn new(timing: Timing, format: Format) -> Mode {
Self::new_with_scaling(timing, format, Scaling::None)
}

/// Create a new double-height video mode.
///
/// This will set the 'Vert 2x' bit.
Expand Down

0 comments on commit 6be7c23

Please sign in to comment.