From f3c467c2f19e5e59983efc1956ffce3db7523cba Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Tue, 5 Apr 2022 23:39:06 +0100 Subject: [PATCH] set_background_palette seems inconsistent between release and debug mode :/ --- agb/examples/text_render.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agb/examples/text_render.rs b/agb/examples/text_render.rs index fb7c29f7..d621e3ea 100644 --- a/agb/examples/text_render.rs +++ b/agb/examples/text_render.rs @@ -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);