void FreeKernel (void) { UninitKernel (TRUE); UninitContexts (); UninitResourceSystem (); UninitPlayerInput (); DestroyDrawable (ReleaseDrawable (Screen)); DestroyContext (ScreenContext); UninitVideoPlayer (); UninitSound (); UninitGraphics (); }
/*---------------------------------------------------------------------------------------------- Process mouse movements when the editor isn't active. See ${AfDeFieldEditor#OnMouseMove} for parameter descriptions. ----------------------------------------------------------------------------------------------*/ bool AfDeFeSt::OnMouseMove(uint grfmk, int xp, int yp) { // See if the mouse is over text. RECT rcSrcRoot; RECT rcDstRoot; InitGraphics(); GetCoordRects(m_qvg, &rcSrcRoot, &rcDstRoot); UninitGraphics(); ComBool fInObject; int odt; CheckHr(m_qrootb->get_IsClickInObject(xp, yp, rcSrcRoot, rcDstRoot, &odt, &fInObject)); // Change the cursor to a pointing finger if over a hot link. if (fInObject && (odt == kodtNameGuidHot || odt == kodtExternalPathName || odt == kodtOwnNameGuidHot)) { ::SetCursor(::LoadCursor(NULL, IDC_HAND)); } else ::SetCursor(::LoadCursor(NULL, IDC_IBEAM)); return true; }