osViBlack
Blacks out VI screen
#include <ultra64.h> /* os.h */
void osViBlack(u8 active);
None.
Allows the screen to be blacked out. Blacks out the screen after osViBlack is executed at the time that the first vertical retrace interrupt is generated. Vertical retrace signals continue to be generated while the screen is blacked out.
If the coefficient for Y scale processing (yscale) is set to anything other than 1.0 with osViSetYScale when osViBlack is executed, return it to 1.0. In some instances, a reset will have no effect. Also, be sure to execute osViBlack after osCreateViManager.
// Starting VI manager & Blackout
osCreateViManager(OS_PRIORITY_VIMGR);
#if (SCREEN_WD==320)&&(SCREEN_HT==240) // Setting for low resolution
osViSetMode(&osViModeNtscLan1);
#elif (SCREEN_WD==640)&&(SCREEN_HT==480) // Setting for high resolution
osViSetMode(&osViModeNtscHaf1]);
#else
#error "Illegal Screen size"
#endif
osViBlack(TRUE);
02/01/99 Completely rewritten.