[teagba] Make some globals static

This commit is contained in:
2023-11-30 01:29:53 -06:00
parent dd16577b50
commit d0f19fd51d
2 changed files with 2 additions and 5 deletions
-3
View File
@@ -36,9 +36,6 @@ struct OX_ALIGN8 GbaSpriteAttrUpdate {
};
extern volatile uint16_t g_spriteUpdates;
extern ox::Array<GbaSpriteAttrUpdate, 128> g_spriteBuffer;
void addSpriteUpdate(const GbaSpriteAttrUpdate &upd) noexcept;
void applySpriteUpdates() noexcept;
+2 -2
View File
@@ -10,8 +10,8 @@
namespace teagba {
volatile uint16_t g_spriteUpdates = 0;
ox::Array<GbaSpriteAttrUpdate, 128> g_spriteBuffer;
static volatile uint16_t g_spriteUpdates = 0;
static ox::Array<GbaSpriteAttrUpdate, 128> g_spriteBuffer;
void addSpriteUpdate(const GbaSpriteAttrUpdate &upd) noexcept {
// block until g_spriteUpdates is less than buffer len