aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin.rs4
-rw-r--r--src/ppu.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bin.rs b/src/bin.rs
index e608e7e..76ef5c9 100644
--- a/src/bin.rs
+++ b/src/bin.rs
@@ -2,8 +2,8 @@ extern crate core;
use std::fs::File;
use std::io::Read;
-use core::cell::RefCell;
-use core::intrinsics::transmute;
+use std::cell::RefCell;
+use std::intrinsics::transmute;
use std::time::{Instant, Duration};
use std::thread::sleep;
diff --git a/src/ppu.rs b/src/ppu.rs
index 095e3e1..faf0664 100644
--- a/src/ppu.rs
+++ b/src/ppu.rs
@@ -440,7 +440,7 @@ impl<'a> PPU<'a> {
0 => 0,
_ => bg
}
- }));
+ }) & 0x3f);
}
pub fn new(mem: PPUMemory<'a>, scr: &'a mut Screen) -> Self {