Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impl Copy, Clone for all types in common.rs #81

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/framebuffer/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,20 +300,20 @@ pub enum mxcfb_ioctl {
MXCFB_ENABLE_EPDC_ACCESS = 0x36,
}

#[derive(Debug)]
#[derive(Copy, Clone, Debug, PartialEq)]
pub enum auto_update_mode {
AUTO_UPDATE_MODE_REGION_MODE = 0,
AUTO_UPDATE_MODE_AUTOMATIC_MODE = 1,
}

#[derive(Debug)]
#[derive(Copy, Clone, Debug)]
pub enum update_scheme {
UPDATE_SCHEME_SNAPSHOT = 0,
UPDATE_SCHEME_QUEUE = 1,
UPDATE_SCHEME_QUEUE_AND_MERGE = 2,
}

#[derive(Debug)]
#[derive(Copy, Clone, Debug)]
pub enum update_mode {
/// Returns a marker, no locking, no waiting on the
/// clean state on the update region
Expand All @@ -324,7 +324,7 @@ pub enum update_mode {
UPDATE_MODE_FULL = 1,
}

#[derive(Debug)]
#[derive(Copy, Clone, Debug)]
pub enum dither_mode {
EPDC_FLAG_USE_DITHERING_PASSTHROUGH = 0x0,
EPDC_FLAG_USE_DITHERING_DRAWING = 0x1,
Expand All @@ -344,7 +344,7 @@ pub enum dither_mode {
EPDC_FLAG_EXP8 = 0x7ed3_d2c0,
}

#[derive(Debug)]
#[derive(Copy, Clone, Debug)]
pub enum waveform_mode {
/// (Recommended) Screen goes to white
/// (flashes black/white once to clear ghosting when used with UPDATE_MODE_FULL)
Expand Down Expand Up @@ -395,7 +395,7 @@ pub enum waveform_mode {
WAVEFORM_MODE_AUTO = 257,
}

#[derive(Debug)]
#[derive(Copy, Clone, Debug)]
pub enum display_temp {
/// Seems to have the best draw latency. Perhaps the rule of thumb here is the lower the faster.
/// `xochitl` seems to use this value.
Expand Down