From a90cfdab3b535c12ffc6f4c422d431be18c5f055 Mon Sep 17 00:00:00 2001 From: Lokathor Date: Thu, 22 Dec 2022 21:10:18 -0700 Subject: [PATCH] palbank for objects --- src/video/obj.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/obj.rs b/src/video/obj.rs index 2f0827a..4f97982 100644 --- a/src/video/obj.rs +++ b/src/video/obj.rs @@ -153,4 +153,8 @@ impl ObjAttr { pub fn set_tile_id(&mut self, id: u16) { self.2 = self.2.with_tile_id(id); } + #[inline] + pub fn set_palbank(&mut self, palbank: u16) { + self.2 = self.2.with_palbank(palbank); + } }