mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
Go back to using DMA for sprites
This commit is contained in:
parent
c2a4845a2e
commit
8df9f4b5c4
|
@ -799,13 +799,11 @@ impl SpriteControllerInner {
|
||||||
};
|
};
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
dest.as_ptr()
|
dma::dma_copy16(
|
||||||
.copy_from_nonoverlapping(sprite.data.as_ptr(), sprite.data.len());
|
sprite.data.as_ptr().cast(),
|
||||||
// dma::dma_copy16(
|
dest.as_ptr().cast(),
|
||||||
// sprite.data.as_ptr().cast(),
|
sprite.data.len() / 2,
|
||||||
// dest.as_ptr().cast(),
|
);
|
||||||
// sprite.data.len() / 2,
|
|
||||||
// );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let storage = Storage::from_sprite_ptr(dest);
|
let storage = Storage::from_sprite_ptr(dest);
|
||||||
|
|
Loading…
Reference in a new issue