rem: return &page->charDesc[ch - page->firstChar];
add: charIndex = ch - page->firstChar; if (ch >= page->firstChar && charIndex < page->numChars && page->charDesc[charIndex].image) { return &page->charDesc[charIndex]; } else { #ifdef DEBUG fprintf (stderr, "Character %u not present\n"); #endif return NULL; }
context: getCharFrame (FONT_DESC *fontPtr, wchar_t ch) {	wchar_t pageStart = ch & CHARACTER_PAGE_MASK;	FONT_PAGE *page = fontPtr->fontPages;	for (;;)	{		if (page == NULL)			return NULL;		if (page->pageStart == pageStart)			break;		page = page->next;	}	return &page->charDesc[ch - page->firstChar];}