/** * Poke the background palette into character 0's images. */ void FettleFontPal(SCNHANDLE fontPal) { const FONT *pFont; IMAGE *pImg; assert(fontPal); assert(g_hTagFont); // Tag font not declared assert(g_hTalkFont); // Talk font not declared pFont = (const FONT *)LockMem(g_hTagFont); pImg = (IMAGE *)LockMem(FROM_32(pFont->fontInit.hObjImg)); // get image for char 0 if (!TinselV2) pImg->hImgPal = TO_32(fontPal); else pImg->hImgPal = 0; pFont = (const FONT *)LockMem(g_hTalkFont); pImg = (IMAGE *)LockMem(FROM_32(pFont->fontInit.hObjImg)); // get image for char 0 if (!TinselV2) pImg->hImgPal = TO_32(fontPal); else pImg->hImgPal = 0; if (TinselV2 && SysVar(SV_TAGCOLOR)) { const COLORREF c = GetActorRGB(-1); SetTagColorRef(c); UpdateDACqueue(SysVar(SV_TAGCOLOR), c); } }
void PokeInTagColor() { if (SysVar(SV_TAGCOLOR)) { const COLORREF c = GetActorRGB(-1); UpdateDACqueue(SysVar(SV_TAGCOLOR), c); } }