| 37 | } |
| 38 | |
| 39 | void CMainScreen::Init() |
| 40 | { |
| 41 | CBaseScreen::Init(); |
| 42 | g_ConfigLoaded = false; |
| 43 | g_GlobalScale = 1.0; |
| 44 | Load(); |
| 45 | Reset(); |
| 46 | g_GameWindow.SetTitle(CLIENT_TITLE); |
| 47 | #ifndef NEW_RENDERER_ENABLED |
| 48 | g_GL.UpdateRect(); |
| 49 | #else |
| 50 | g_GumpManager.RedrawAll(); |
| 51 | #endif |
| 52 | g_EntryPointer = m_MainGump.m_PasswordFake; |
| 53 | g_AnimationManager.ClearUnusedAnimations(); |
| 54 | g_QuestArrow.Enabled = false; |
| 55 | g_TotalSendSize = 0; |
| 56 | g_TotalRecvSize = 0; |
| 57 | g_LightLevel = 0; |
| 58 | g_PersonalLightLevel = 0; |
| 59 | g_ScreenEffectManager.UseSunrise(); |
| 60 | SmoothScreenAction = 0; |
| 61 | m_Gump.PrepareTextures(); |
| 62 | } |
| 63 | |
| 64 | void CMainScreen::Reset() const |
| 65 | { |
nothing calls this directly
no test coverage detected