diff options
| author | cadmic <cadmic24@gmail.com> | 2024-09-03 20:43:06 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-03 23:43:06 -0400 |
| commit | c8cafdc93ed49b1dd77ac5494acb1da00ec834bf (patch) | |
| tree | 6f6f416ee48032fb840b044743db09acd2c60f56 /include/fault.h | |
| parent | 7a9209c88561ed1d1c8025e4001f0f29e5921cd2 (diff) | |
Rename FaultDrawer_ functions to Fault_ (#2113)
* Rename FaultDrawer_ functions to Fault_
* Rename FaultDrawer_Init to Fault_InitDrawer
Diffstat (limited to 'include/fault.h')
| -rw-r--r-- | include/fault.h | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/include/fault.h b/include/fault.h index 996f1f8d6..4ecb17aea 100644 --- a/include/fault.h +++ b/include/fault.h @@ -67,29 +67,24 @@ void Fault_SetFrameBuffer(void* fb, u16 w, u16 h); void Fault_WaitForInput(void); -#if FAULT_VERSION == FAULT_N64 - -// Not implemented. Silently noop-ing is fine, these are not essential for functionality. -#define FaultDrawer_SetFontColor(color) (void)0 -#define FaultDrawer_SetCharPad(padW, padH) (void)0 - void Fault_SetCursor(s32 x, s32 y); s32 Fault_Printf(const char* fmt, ...); void Fault_DrawText(s32 x, s32 y, const char* fmt, ...); -#define FaultDrawer_SetCursor Fault_SetCursor -#define FaultDrawer_Printf Fault_Printf -#define FaultDrawer_DrawText Fault_DrawText + +#if FAULT_VERSION == FAULT_N64 + +// Not implemented. Silently noop-ing is fine, these are not essential for functionality. +#define Fault_SetFontColor(color) (void)0 +#define Fault_SetCharPad(padW, padH) (void)0 #elif FAULT_VERSION == FAULT_GC -void FaultDrawer_SetForeColor(u16 color); -void FaultDrawer_SetBackColor(u16 color); -void FaultDrawer_SetFontColor(u16 color); -void FaultDrawer_SetCharPad(s8 padW, s8 padH); -void FaultDrawer_SetCursor(s32 x, s32 y); -s32 FaultDrawer_VPrintf(const char* fmt, va_list args); -s32 FaultDrawer_Printf(const char* fmt, ...); -void FaultDrawer_DrawText(s32 x, s32 y, const char* fmt, ...); +void Fault_InitDrawer(void); +void Fault_SetForeColor(u16 color); +void Fault_SetBackColor(u16 color); +void Fault_SetFontColor(u16 color); +void Fault_SetCharPad(s8 padW, s8 padH); +s32 Fault_VPrintf(const char* fmt, va_list args); #endif |
