mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 16:51:33 +11:00
satisfy linter
This commit is contained in:
parent
20c06536e4
commit
b0c4a8fd80
|
@ -238,7 +238,6 @@ impl ObjectAttribute {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AffineMatrix<'_> {
|
impl AffineMatrix<'_> {
|
||||||
#[allow(clippy::identity_op)]
|
|
||||||
/// Commits matrix to OAM, will cause any objects using this matrix to be updated.
|
/// Commits matrix to OAM, will cause any objects using this matrix to be updated.
|
||||||
pub fn commit(&self) {
|
pub fn commit(&self) {
|
||||||
unsafe { self.attributes.commit(self.loan.index) };
|
unsafe { self.attributes.commit(self.loan.index) };
|
||||||
|
@ -246,6 +245,7 @@ impl AffineMatrix<'_> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AffineMatrixAttributes {
|
impl AffineMatrixAttributes {
|
||||||
|
#[allow(clippy::identity_op)]
|
||||||
unsafe fn commit(&self, index: u8) {
|
unsafe fn commit(&self, index: u8) {
|
||||||
let index = index as usize * 4;
|
let index = index as usize * 4;
|
||||||
OBJECT_ATTRIBUTE_MEMORY.set((index + 0) * 4 + 3, self.p_a as u16);
|
OBJECT_ATTRIBUTE_MEMORY.set((index + 0) * 4 + 3, self.p_a as u16);
|
||||||
|
|
Loading…
Reference in a new issue