mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user