From d0f19fd51d389066168d8dd79c6abd381dffe761 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 30 Nov 2023 01:29:53 -0600 Subject: [PATCH] [teagba] Make some globals static --- deps/teagba/include/teagba/gfx.hpp | 3 --- deps/teagba/src/gfx.cpp | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/deps/teagba/include/teagba/gfx.hpp b/deps/teagba/include/teagba/gfx.hpp index fdee0378..8c2b6a03 100644 --- a/deps/teagba/include/teagba/gfx.hpp +++ b/deps/teagba/include/teagba/gfx.hpp @@ -36,9 +36,6 @@ struct OX_ALIGN8 GbaSpriteAttrUpdate { }; -extern volatile uint16_t g_spriteUpdates; -extern ox::Array g_spriteBuffer; - void addSpriteUpdate(const GbaSpriteAttrUpdate &upd) noexcept; void applySpriteUpdates() noexcept; diff --git a/deps/teagba/src/gfx.cpp b/deps/teagba/src/gfx.cpp index 2148dfac..8db190b7 100644 --- a/deps/teagba/src/gfx.cpp +++ b/deps/teagba/src/gfx.cpp @@ -10,8 +10,8 @@ namespace teagba { -volatile uint16_t g_spriteUpdates = 0; -ox::Array g_spriteBuffer; +static volatile uint16_t g_spriteUpdates = 0; +static ox::Array g_spriteBuffer; void addSpriteUpdate(const GbaSpriteAttrUpdate &upd) noexcept { // block until g_spriteUpdates is less than buffer len