void DealDataStreams(BYTE *buf, UINT16 len) { UINT16 i=0; DBGD((TEXT("\r\nEXE-System Socket Read %d bytes:"),len)); for (i=0; i<len; i++) DBGD((TEXT("%02X "),buf[i])); UINT32 temp=0; struct system_t *pSystemInfo = &gSystemInfo; switch (buf[0]) { case 0x10: if (buf[1] < 11) setBacklight(buf[1]); break; default: break; } }
void UniFont_Init(void) { memcpy(&g_UFN_Header,g_ArUnicodeMS_H27,sizeof(UFN_FILE_HEADER)); #if (UniFont_Debug==ENABLE) DBGD(g_UFN_Header.cbThis); debug_msg("g_UFN_Header.cFaceName:%s\r\n",g_UFN_Header.cFaceName); DBGD(g_UFN_Header.wHeight); DBGD(g_UFN_Header.wDescent); DBGD(g_UFN_Header.wGlyphsCount); DBGD(g_UFN_Header.cRanges); DBGD(g_UFN_Header.FileHandle); DBGD(g_UFN_Header.FontHandle); DBGH(g_UFN_Header.RangeTable); DBGH(g_UFN_Header.IndexTable); DBGH(g_UFN_Header.WidthTable); DBGH(g_UFN_Header.OffsetTable); DBGD(g_UFN_Header.GlyphData); #endif }