From b8eb7dccfdd16bd1d39bbedeb176fce7f0f1dc9e Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 19 Jul 2017 16:08:33 -0400 Subject: Fix terminal and add support for animations --- ShiftOS.Frontend/GUI/PictureBox.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ShiftOS.Frontend/GUI/PictureBox.cs') diff --git a/ShiftOS.Frontend/GUI/PictureBox.cs b/ShiftOS.Frontend/GUI/PictureBox.cs index 6f60b29..db4df7f 100644 --- a/ShiftOS.Frontend/GUI/PictureBox.cs +++ b/ShiftOS.Frontend/GUI/PictureBox.cs @@ -9,6 +9,7 @@ using ShiftOS.Engine; using System.Drawing.Imaging; using ShiftOS.Frontend.GraphicsSubsystem; using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework; namespace ShiftOS.Frontend.GUI { @@ -43,7 +44,7 @@ namespace ShiftOS.Frontend.GUI } } - protected override void OnLayout() + protected override void OnLayout(GameTime gameTime) { if (AutoSize) { @@ -109,8 +110,8 @@ namespace ShiftOS.Frontend.GUI InterpolationMode.HighQualityBicubic; grPhoto.DrawImage(imgPhoto, - new Rectangle(destX, destY, destWidth, destHeight), - new Rectangle(sourceX, sourceY, sourceWidth, sourceHeight), + new System.Drawing.Rectangle(destX, destY, destWidth, destHeight), + new System.Drawing.Rectangle(sourceX, sourceY, sourceWidth, sourceHeight), GraphicsUnit.Pixel); grPhoto.Dispose(); -- cgit v1.2.3