Example #1
0
            public override void DrawRect(sd.RectangleF dirtyRect)
            {
                var drawable = Drawable;

                if (drawable == null)
                {
                    return;
                }
                if (!IsFlipped)
                {
                    dirtyRect.Y = Frame.Height - dirtyRect.Y - dirtyRect.Height;
                }
                if (dirtyRect.X % 1.0f > 0f)
                {
                    dirtyRect.Width += 1;
                }
                if (dirtyRect.Y % 1.0f > 0f)
                {
                    dirtyRect.Height += 1;
                }
                ApplicationHandler.QueueResizing = true;
                drawable.Update(Rectangle.Ceiling(dirtyRect.ToEto()));
                ApplicationHandler.QueueResizing = false;
            }