mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31: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 {
|
||||
dest.as_ptr()
|
||||
.copy_from_nonoverlapping(sprite.data.as_ptr(), sprite.data.len());
|
||||
// dma::dma_copy16(
|
||||
// sprite.data.as_ptr().cast(),
|
||||
// dest.as_ptr().cast(),
|
||||
// sprite.data.len() / 2,
|
||||
// );
|
||||
dma::dma_copy16(
|
||||
sprite.data.as_ptr().cast(),
|
||||
dest.as_ptr().cast(),
|
||||
sprite.data.len() / 2,
|
||||
);
|
||||
}
|
||||
|
||||
let storage = Storage::from_sprite_ptr(dest);
|
||||
|
|
Loading…
Reference in a new issue