MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / VIGetTvFormat

Function VIGetTvFormat

src/dolphin/src/vi/vi.c:989–1015  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987}
988
989u32 VIGetTvFormat(void)
990{
991 u32 fmt;
992 int interrupt;
993
994 interrupt = OSDisableInterrupts();
995
996 switch (CurrTvMode)
997 {
998 case VI_NTSC:
999 case VI_DEBUG:
1000 case VI_GCA:
1001 fmt = VI_NTSC;
1002 break;
1003 case VI_PAL:
1004 case VI_DEBUG_PAL:
1005 fmt = VI_PAL;
1006 break;
1007 case VI_EURGB60:
1008 case VI_MPAL:
1009 fmt = CurrTvMode;
1010 break;
1011 }
1012
1013 OSRestoreInterrupts(interrupt);
1014 return fmt;
1015}
1016
1017void __VIDisplayPositionToXY(u32 hcount, u32 vcount, s16* x, s16* y)
1018{

Callers 2

SISetSamplingRateFunction · 0.85
__GXInitGXFunction · 0.85

Calls 1

OSDisableInterruptsFunction · 0.85

Tested by

no test coverage detected