Esempio n. 1
0
        void checkIfBully(Chunk chunk, int x)
        {
            //check if image chunk grew so big it pushed the next chunk out of console window bounds
            int ind = getChunkIndex(chunk);

            if (ind != -1 && ind < chunks.Count - 1)
            {
                if (x + chunks[ind + 1].GetWidth() > this.Width)
                {
                    //send the next chunk to a new line
                    chunk.InsertNewline();
                    //jumpToLastLine();
                    //this.OnResize(new EventArgs());
                }
            }
        }