added loading screen stretching for all resolutions

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5488 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
lalien
2012-08-21 10:26:23 +00:00
parent 7e3b802ab6
commit 82bfc8d9f4
2 changed files with 123 additions and 103 deletions
+27 -23
View File
@@ -32,29 +32,33 @@ void CreateLoadingScreenProgressBar()
{
gusLeftmostShaded = 162;
// Special case->show small image centered
if (bShowSmallImage == TRUE)
{
if (iResolution >= _800x600)
{
CreateProgressBar(0, iScreenWidthOffset + 162, iScreenHeightOffset + 427, iScreenWidthOffset + 480, iScreenHeightOffset + 443);
}
}
else
{
if (iResolution >= _640x480 && iResolution < _800x600)
{
CreateProgressBar(0, 162, 427, 480, 443);
}
else if (iResolution < _1024x768)
{
CreateProgressBar(0, (202 + (SCREEN_WIDTH - 800)/2), 533 + ((SCREEN_HEIGHT - 600) / 2), 600 + ((SCREEN_WIDTH - 800) / 2), 554 + ((SCREEN_HEIGHT - 600) / 2));
}
else
{
CreateProgressBar(0, 259 + ((SCREEN_WIDTH - 1024) / 2), 683 + ((SCREEN_HEIGHT - 768) / 2), 767 + ((SCREEN_WIDTH - 1024) / 2), 708 + ((SCREEN_HEIGHT - 768) / 2));
}
}
//// Special case->show small image centered
//if (bShowSmallImage == TRUE)
//{
// if (iResolution >= _800x600)
// {
// CreateProgressBar(0, iScreenWidthOffset + 162, iScreenHeightOffset + 427, iScreenWidthOffset + 480, iScreenHeightOffset + 443);
// }
//}
//else
//{
// if (iResolution >= _640x480 && iResolution < _800x600)
// {
// CreateProgressBar(0, 162, 427, 480, 443);
// }
// else if (iResolution < _1024x768)
// {
// CreateProgressBar(0, (202 + (SCREEN_WIDTH - 800)/2), 533 + ((SCREEN_HEIGHT - 600) / 2), 600 + ((SCREEN_WIDTH - 800) / 2), 554 + ((SCREEN_HEIGHT - 600) / 2));
// }
// else
// {
// CreateProgressBar(0, 259 + ((SCREEN_WIDTH - 1024) / 2), 683 + ((SCREEN_HEIGHT - 768) / 2), 767 + ((SCREEN_WIDTH - 1024) / 2), 708 + ((SCREEN_HEIGHT - 768) / 2));
// }
//}
CreateProgressBar(0, SCREEN_WIDTH*162/640, SCREEN_HEIGHT*427/480, SCREEN_WIDTH*480/640, SCREEN_HEIGHT*443/480);
SetProgressBarUseBorder(0, FALSE );
}