aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Frontend/GUI/PictureBox.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-07-19 16:08:33 -0400
committerMichael <[email protected]>2017-07-19 16:08:33 -0400
commitb8eb7dccfdd16bd1d39bbedeb176fce7f0f1dc9e (patch)
tree4502ced3e939ff3725bc7c1925f1ba88b62653d8 /ShiftOS.Frontend/GUI/PictureBox.cs
parent3fe1872f5f81f8203e57cbba2dca6ce833f08f22 (diff)
downloadshiftos_thereturn-b8eb7dccfdd16bd1d39bbedeb176fce7f0f1dc9e.tar.gz
shiftos_thereturn-b8eb7dccfdd16bd1d39bbedeb176fce7f0f1dc9e.tar.bz2
shiftos_thereturn-b8eb7dccfdd16bd1d39bbedeb176fce7f0f1dc9e.zip
Fix terminal and add support for animations
Diffstat (limited to 'ShiftOS.Frontend/GUI/PictureBox.cs')
-rw-r--r--ShiftOS.Frontend/GUI/PictureBox.cs7
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();