Exemplo n.º 1
0
        /// <summary>
        /// Sets the normal Buffer of the BufferSet as its currently active Buffer
        /// </summary>
        public void ActivateNormalBuffer()
        {
            if (Active == Normal)
            {
                return;
            }
            Normal.X = Alt.X;
            Normal.Y = Alt.Y;

            // The alt buffer should always be cleared when we switch to the normal
            // buffer. This frees up memory since the alt buffer should always be new
            // when activated.

            Alt.Clear();

            Active = Normal;
            if (Activated != null)
            {
                Activated(Normal, Alt);
            }
        }