Skip to content
Snippets Groups Projects
Verified Commit 3192d273 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

fix: small code fixes

parent 2376bf27
No related branches found
No related tags found
No related merge requests found
Pipeline #1503 passed
...@@ -3,7 +3,7 @@ use wasm_bindgen::prelude::*; ...@@ -3,7 +3,7 @@ use wasm_bindgen::prelude::*;
use crate::warnln; use crate::warnln;
#[derive(Clone, Copy, PartialEq)] #[derive(Clone, Copy, PartialEq, Eq)]
pub enum PadSelection { pub enum PadSelection {
Action, Action,
Direction, Direction,
......
...@@ -51,7 +51,7 @@ pub type Palette = [Pixel; PALETTE_SIZE]; ...@@ -51,7 +51,7 @@ pub type Palette = [Pixel; PALETTE_SIZE];
/// Represents a tile within the Game Boy context, /// Represents a tile within the Game Boy context,
/// should contain the pixel buffer of the tile. /// should contain the pixel buffer of the tile.
#[cfg_attr(feature = "wasm", wasm_bindgen)] #[cfg_attr(feature = "wasm", wasm_bindgen)]
#[derive(Clone, Copy, PartialEq)] #[derive(Clone, Copy, PartialEq, Eq)]
pub struct Tile { pub struct Tile {
buffer: [u8; 64], buffer: [u8; 64],
} }
...@@ -100,7 +100,7 @@ impl Display for Tile { ...@@ -100,7 +100,7 @@ impl Display for Tile {
} }
#[cfg_attr(feature = "wasm", wasm_bindgen)] #[cfg_attr(feature = "wasm", wasm_bindgen)]
#[derive(Clone, Copy, PartialEq)] #[derive(Clone, Copy, PartialEq, Eq)]
pub struct ObjectData { pub struct ObjectData {
x: i16, x: i16,
y: i16, y: i16,
...@@ -271,7 +271,7 @@ pub struct Ppu { ...@@ -271,7 +271,7 @@ pub struct Ppu {
} }
#[cfg_attr(feature = "wasm", wasm_bindgen)] #[cfg_attr(feature = "wasm", wasm_bindgen)]
#[derive(Clone, Copy, PartialEq)] #[derive(Clone, Copy, PartialEq, Eq)]
pub enum PpuMode { pub enum PpuMode {
HBlank = 0, HBlank = 0,
VBlank = 1, VBlank = 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment