From 723b7642c8a9a412fdef5af5c0c93a546352942b Mon Sep 17 00:00:00 2001 From: codeimp Date: Fri, 23 Jan 2009 18:52:43 +0000 Subject: [PATCH] @fixed incorrect positioning of loading image in texture browsers --- Source/Data/ImageData.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Data/ImageData.cs b/Source/Data/ImageData.cs index 4c8fa5fd..a25d1a0f 100644 --- a/Source/Data/ImageData.cs +++ b/Source/Data/ImageData.cs @@ -335,11 +335,15 @@ namespace CodeImp.DoomBuilder.Data else if(loadfailed) { // Draw error bitmap + targetpos = new Point(targetpos.X + ((General.Map.Data.Previews.ImageWidth - Properties.Resources.Hourglass.Width) >> 1), + targetpos.Y + ((General.Map.Data.Previews.ImageHeight - Properties.Resources.Hourglass.Height) >> 1)); target.DrawImageUnscaled(Properties.Resources.Failed, targetpos); } else { // Draw loading bitmap + targetpos = new Point(targetpos.X + ((General.Map.Data.Previews.ImageWidth - Properties.Resources.Hourglass.Width) >> 1), + targetpos.Y + ((General.Map.Data.Previews.ImageHeight - Properties.Resources.Hourglass.Height) >> 1)); target.DrawImageUnscaled(Properties.Resources.Hourglass, targetpos); } }