Browse Source

Use annotation for deriving Clone.

pull/10/head
Ronald Kinard 10 years ago
parent
commit
d792c7bcd8
  1. 12
      src/raw/services/gsp.rs

12
src/raw/services/gsp.rs

@ -30,7 +30,7 @@ pub enum GSP_FramebufferFormats { @@ -30,7 +30,7 @@ pub enum GSP_FramebufferFormats {
}
#[repr(C)]
#[derive(Copy)]
#[derive(Clone, Copy)]
pub struct GSP_CaptureInfoEntry { //See this for GSP_CaptureInfoEntry and GSP_CaptureInfo: http://3dbrew.org/wiki/GSPGPU:ImportDisplayCaptureInfo
framebuf0_vaddr: *mut u32,
framebuf1_vaddr: *mut u32,
@ -38,20 +38,12 @@ pub struct GSP_CaptureInfoEntry { //See this for GSP_CaptureInfoEntry and GSP_Ca @@ -38,20 +38,12 @@ pub struct GSP_CaptureInfoEntry { //See this for GSP_CaptureInfoEntry and GSP_Ca
framebuf_widthbytesize: u32,
}
impl Clone for GSP_CaptureInfoEntry {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Copy)]
#[derive(Clone, Copy)]
pub struct GSP_CaptureInfo {
screencapture: [GSP_CaptureInfoEntry; 2usize]
}
impl Clone for GSP_CaptureInfo {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
pub enum GSP_Event {
GSPEVENT_PSC0 = 0, // memory fill completed

Loading…
Cancel
Save