set_background_palette seems inconsistent between release and debug mode :/

This commit is contained in:
Gwilym Kuiper 2022-04-05 23:39:06 +01:00
parent 45e18d5cc7
commit f3c467c2f1

View file

@ -2,7 +2,7 @@
#![no_main]
use agb::{
display::{palette16::Palette16, tiled::TileSetting, Font, Priority},
display::{tiled::TileSetting, Font, Priority},
include_font,
};
@ -13,10 +13,10 @@ fn main(mut gba: agb::Gba) -> ! {
let (gfx, mut vram) = gba.display.video.tiled0();
let vblank = agb::interrupt::VBlank::get();
vram.set_background_palettes(&[Palette16::new([
vram.set_background_palette_raw(&[
0x0000, 0x0ff0, 0x00ff, 0xf00f, 0xf0f0, 0x0f0f, 0xaaaa, 0x5555, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
])]);
]);
let background_tile = vram.new_dynamic_tile().fill_with(0);