mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
Fix compile errors
This commit is contained in:
parent
384a5bc887
commit
cc57dcf649
|
@ -23,13 +23,15 @@ pub fn display_logo(map: &mut RegularMap, vram: &mut VRamManager) {
|
|||
}
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::display::{tiled::RegularBackgroundSize, Priority};
|
||||
|
||||
use super::*;
|
||||
|
||||
#[test_case]
|
||||
fn logo_display(gba: &mut crate::Gba) {
|
||||
let (gfx, mut vram) = gba.display.video.tiled0();
|
||||
|
||||
let mut map = gfx.background(crate::display::Priority::P0);
|
||||
let mut map = gfx.background(Priority::P0, RegularBackgroundSize::Background32x32);
|
||||
|
||||
display_logo(&mut map, &mut vram);
|
||||
|
||||
|
|
|
@ -213,7 +213,10 @@ mod tests {
|
|||
fn font_display(gba: &mut crate::Gba) {
|
||||
let (gfx, mut vram) = gba.display.video.tiled0();
|
||||
|
||||
let mut bg = gfx.background(crate::display::Priority::P0);
|
||||
let mut bg = gfx.background(
|
||||
crate::display::Priority::P0,
|
||||
crate::display::tiled::RegularBackgroundSize::Background32x32,
|
||||
);
|
||||
|
||||
vram.set_background_palette_raw(&[
|
||||
0x0000, 0x0ff0, 0x00ff, 0xf00f, 0xf0f0, 0x0f0f, 0xaaaa, 0x5555, 0x0000, 0x0000, 0x0000,
|
||||
|
|
Loading…
Reference in a new issue