aboutsummaryrefslogtreecommitdiff
path: root/src/raw
diff options
context:
space:
mode:
authorRonald Kinard <[email protected]>2015-06-11 23:00:34 -0500
committerRonald Kinard <[email protected]>2015-06-11 23:00:34 -0500
commitd5fb1a9b7dd51d43c99f4d1995edd9de6fda4773 (patch)
treeb86110cd0b1a9571260d2d3fc82d22a6f1ca367a /src/raw
parentAdd bindings for several more services. (diff)
downloadctru-rs-d5fb1a9b7dd51d43c99f4d1995edd9de6fda4773.tar.xz
ctru-rs-d5fb1a9b7dd51d43c99f4d1995edd9de6fda4773.zip
Make idiomatic interfaces to a few functions.
Diffstat (limited to 'src/raw')
-rw-r--r--src/raw/services/gsp.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/raw/services/gsp.rs b/src/raw/services/gsp.rs
index 6518978..3420186 100644
--- a/src/raw/services/gsp.rs
+++ b/src/raw/services/gsp.rs
@@ -9,7 +9,7 @@ pub fn GSP_REBASE_REG(r: u32) {
}
#[repr(C)]
-#[derive(Copy)]
+#[derive(Clone, Copy)]
pub struct GSP_FramebufferInfo {
active_framebuf: u32, //"0=first, 1=second"
framebuf0_vaddr: *mut u32, //"Framebuffer virtual address, for the main screen this is the 3D left framebuffer"
@@ -20,10 +20,6 @@ pub struct GSP_FramebufferInfo {
unk: u32 //"?"
}
-impl Clone for GSP_FramebufferInfo {
- fn clone(&self) -> Self { *self }
-}
-
#[repr(C)]
pub enum GSP_FramebufferFormats {
GSP_RGBA8_OES=0, //pixel_size = 4-bytes