/// <summary> /// Creates the surfaces required for full screen operation. /// </summary> /// <returns>True if the surfaces are initialized, false otherwise.</returns> public bool CreateFullScreenSurfaces() { if (doubleBuffer) { _screenSurface = GraphicsEngine.Current.CreatePrimarySurface(Handle, true, false); if (_screenSurface != null) { _backBufferSurface = GraphicsEngine.Current.CreateWorkSurface(640, 480); } ClearBackground(); } else { _screenSurface = GraphicsEngine.Current.CreatePrimarySurface(Handle, true, true); if (_screenSurface != null) { _backBufferSurface = _screenSurface.GetBackBufferSurface(); } } ResetTerrarium(); return true; }