diff options
Diffstat (limited to 'ShiftOS.Frontend/GUI/PictureBox.cs')
| -rw-r--r-- | ShiftOS.Frontend/GUI/PictureBox.cs | 7 |
1 files changed, 4 insertions, 3 deletions
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(); |
