@fixed incorrect positioning of loading image in texture browsers

This commit is contained in:
codeimp 2009-01-23 18:52:43 +00:00
parent 64047a8f07
commit 723b7642c8

View file

@ -335,11 +335,15 @@ namespace CodeImp.DoomBuilder.Data
else if(loadfailed) else if(loadfailed)
{ {
// Draw error bitmap // 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); target.DrawImageUnscaled(Properties.Resources.Failed, targetpos);
} }
else else
{ {
// Draw loading bitmap // 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); target.DrawImageUnscaled(Properties.Resources.Hourglass, targetpos);
} }
} }