void Display()
        {
            Screen.OnDisplay();
            Dirty = false;

            if (DirtyArea.Width > 0)
            {
                platformDrawer.Redraw(Framebuffer, DirtyArea);
            }
            else
            {
                platformDrawer.Redraw(Framebuffer);
            }
            DirtyArea = Rectangle.Empty;
        }
Пример #2
0
        void Display()
        {
            Screen.OnDisplay();
            Dirty = false;

            Rectangle rec = new Rectangle(0, 0, Framebuffer.Width, Framebuffer.Height);

            if (!fullRedraw && DirtyArea.Width > 0)
            {
                rec = DirtyArea;
            }
            platformDrawer.Redraw(Framebuffer, rec);
            DirtyArea  = Rectangle.Empty;
            fullRedraw = false;
        }