diff options
author | Gogume1er <gogume1er@gmail.com> | 2021-06-05 12:06:24 +0200 |
---|---|---|
committer | Gogume1er <gogume1er@gmail.com> | 2021-06-05 12:06:24 +0200 |
commit | e242303ff5f56ef258bef9ea7608b6db28889096 (patch) | |
tree | b3e2d485e4428aac6294e03b26365d36c91d4528 /arm9/lib/include/gx.h | |
parent | 2288e6d101397143b08ff64a38baaeedd7f2c3dd (diff) | |
parent | 33a7ec1fd719b9321357aa59460cbdb9f7779053 (diff) |
Merge branch 'master' into unkk_020851B8
# Conflicts:
# arm9/asm/unk_020851B8.s
Diffstat (limited to 'arm9/lib/include/gx.h')
-rw-r--r-- | arm9/lib/include/gx.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/arm9/lib/include/gx.h b/arm9/lib/include/gx.h index 11081942..acd23b39 100644 --- a/arm9/lib/include/gx.h +++ b/arm9/lib/include/gx.h @@ -27,15 +27,6 @@ void GXi_NopClearFifo128_(void *); #include "GX_g3imm.h" #include "GX_dma.h" -void GX_Init(); -u32 GX_HBlankIntr(u32 enable); -u32 GX_VBlankIntr(u32 enable); -void GX_DispOff(); -void GX_DispOn(); -void GX_SetGraphicsMode(u32 mode1, u32 mode2, u32 mode3); -void GXS_SetGraphicsMode(u32 mode); -void GXx_SetMasterBrightness_(vu16 *dst, s32 brightness); - typedef union { u32 raw; @@ -181,4 +172,18 @@ typedef enum } GXOBJVRamModeChar; +void GX_Init(); +u32 GX_HBlankIntr(u32 enable); +u32 GX_VBlankIntr(u32 enable); +void GX_DispOff(); +void GX_DispOn(); +void GX_SetGraphicsMode(GXDispMode dispMode, GXBGMode bgMode, GXBG0As bg0_2d3d); +void GXS_SetGraphicsMode(GXBGMode mode); +void GXx_SetMasterBrightness_(vu16 *dst, s32 brightness); + +static inline void GX_SetMasterBrightness(int brightness) +{ + GXx_SetMasterBrightness_(®_GX_MASTER_BRIGHT, brightness); +} + #endif //GUARD_GX_H |