Also for raw copy

This commit is contained in:
Gwilym Kuiper 2022-03-13 19:53:55 +00:00
parent ef8b2edc63
commit 5bf78f6274

View file

@ -260,8 +260,8 @@ impl<'a> VRamManager<'a> {
/// Copies raw palettes to the background palette without any checks.
pub fn set_background_palette_raw(&mut self, palette: &[u16]) {
for (index, &colour) in palette.iter().enumerate() {
PALETTE_BACKGROUND.set(index, colour);
unsafe {
dma_copy16(palette.as_ptr(), PALETTE_BACKGROUND.as_ptr(), palette.len());
}
}