Merge pull request #360 from TwilitRealm/26-04-13-font-opts

Text Rendering optimizations
This commit is contained in:
TakaRikka
2026-04-14 02:38:59 -07:00
committed by GitHub
5 changed files with 120 additions and 47 deletions
+2
View File
@@ -220,10 +220,12 @@ using std::isnan;
// Some basic macros that are more convenient than putting down #if blocks for one-line changes.
#if TARGET_PC
#define IF_DUSK(statement) statement
#define IF_DUSK_ARG(expr) , expr
#define IF_NOT_DUSK(statement)
#define DUSK_IF_ELSE(dusk, orig) dusk
#else
#define IF_DUSK(statement)
#define IF_DUSK_ARG(expr)
#define IF_NOT_DUSK(statement) statement
#define DUSK_IF_ELSE(dusk, orig) orig
#endif