- fix spelling error.

This commit is contained in:
Christoph Oelckers 2017-01-20 22:45:09 +01:00
parent 06898bf8fb
commit 36e1d71f2b
2 changed files with 7 additions and 7 deletions

View file

@ -409,7 +409,7 @@ public:
int ST_X, ST_Y; int ST_X, ST_Y;
int RelTop; int RelTop;
int HorizontalResolution, VirticalResolution; int HorizontalResolution, VerticalResolution;
bool Scaled; bool Scaled;
bool Centering; bool Centering;
bool FixedOrigin; bool FixedOrigin;

View file

@ -248,7 +248,7 @@ DBaseStatusBar::DBaseStatusBar (int reltop, int hres, int vres)
CPlayer = NULL; CPlayer = NULL;
ShowLog = false; ShowLog = false;
HorizontalResolution = hres; HorizontalResolution = hres;
VirticalResolution = vres; VerticalResolution = vres;
SetScaled (st_scale); SetScaled (st_scale);
} }
@ -282,7 +282,7 @@ void DBaseStatusBar::OnDestroy ()
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
//[BL] Added force argument to have forcescaled mean forcescaled. //[BL] Added force argument to have forcescaled mean forcescaled.
// - Also, if the VirticalResolution is something other than the default (200) // - Also, if the VerticalResolution is something other than the default (200)
// We should always obey the value of scale. // We should always obey the value of scale.
void DBaseStatusBar::SetScaled (bool scale, bool force) void DBaseStatusBar::SetScaled (bool scale, bool force)
{ {
@ -295,7 +295,7 @@ void DBaseStatusBar::SetScaled (bool scale, bool force)
gST_Y = ST_Y; gST_Y = ST_Y;
if (RelTop > 0) if (RelTop > 0)
{ {
Displacement = double((ST_Y * VirticalResolution / SCREENHEIGHT) - (VirticalResolution - RelTop))/RelTop; Displacement = double((ST_Y * VerticalResolution / SCREENHEIGHT) - (VerticalResolution - RelTop))/RelTop;
} }
else else
{ {
@ -305,15 +305,15 @@ void DBaseStatusBar::SetScaled (bool scale, bool force)
else else
{ {
ST_X = 0; ST_X = 0;
ST_Y = VirticalResolution - RelTop; ST_Y = VerticalResolution - RelTop;
float aspect = ActiveRatio(SCREENWIDTH, SCREENHEIGHT); float aspect = ActiveRatio(SCREENWIDTH, SCREENHEIGHT);
if (!AspectTallerThanWide(aspect)) if (!AspectTallerThanWide(aspect))
{ // Normal resolution { // Normal resolution
gST_Y = Scale (ST_Y, SCREENHEIGHT, VirticalResolution); gST_Y = Scale (ST_Y, SCREENHEIGHT, VerticalResolution);
} }
else else
{ // 5:4 resolution { // 5:4 resolution
gST_Y = Scale(ST_Y - VirticalResolution/2, SCREENHEIGHT*3, Scale(VirticalResolution, AspectBaseHeight(aspect), 200)) + SCREENHEIGHT/2 gST_Y = Scale(ST_Y - VerticalResolution/2, SCREENHEIGHT*3, Scale(VerticalResolution, AspectBaseHeight(aspect), 200)) + SCREENHEIGHT/2
+ (SCREENHEIGHT - SCREENHEIGHT * AspectMultiplier(aspect) / 48) / 2; + (SCREENHEIGHT - SCREENHEIGHT * AspectMultiplier(aspect) / 48) / 2;
} }
Displacement = 0; Displacement = 0;