inline const CFont& CApp::DefaultFont() { // Create, if first call. if (m_DefaultFont.Handle() == NULL) m_DefaultFont.Create(reinterpret_cast<HFONT>(::GetStockObject(DEFAULT_GUI_FONT))); return m_DefaultFont; }
void CAiArena::Create (void) { ASSERT (m_pArena != NULL); #if defined(DEBUG_DRAW_SOFTWALL_BLOCKS) || defined (DEBUG_DRAW_BURNWALLDANGER_BLOCKS) || defined (DEBUG_DRAW_BOMB_OWNERS) m_Font.SetDisplay(m_pDisplay); m_Font.Create (); m_Font.SetShadow (true); m_Font.SetShadowColor (FONTCOLOR_BLACK); m_Font.SetShadowDirection (SHADOWDIRECTION_DOWNRIGHT); m_Font.SetSpriteLayer (800); m_Font.SetTextColor(FONTCOLOR_WHITE); #endif }