mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-27 14:12:16 +00:00
@fixed incorrect positioning of loading image in texture browsers
This commit is contained in:
parent
64047a8f07
commit
723b7642c8
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue