Fixed width < 0 scaling issues.

This commit is contained in:
Pieter Hulshoff 2019-12-02 22:20:12 +01:00
parent c5cfa7b8fb
commit ecaf871a9e
2 changed files with 5 additions and 5 deletions

View File

@ -161,12 +161,12 @@ float ViewInfo::ScaledWidth() const
float ViewInfo::AbsoluteHeight() const
{
if(Height == -1 && Width == -1)
if(Height < 0 && Width < 0)
{
return ImageHeight;
}
if (Height == -1 && ImageWidth != 0)
if (Height < 0 && ImageWidth != 0)
{
return ImageHeight * Width / ImageWidth;
}
@ -176,12 +176,12 @@ float ViewInfo::AbsoluteHeight() const
float ViewInfo::AbsoluteWidth() const
{
if(Height == -1 && Width == -1)
if(Height < 0 && Width < 0)
{
return ImageWidth;
}
if (Width == -1 && ImageHeight != 0)
if (Width < 0 && ImageHeight != 0)
{
return ImageWidth * Height / ImageHeight;
}

View File

@ -21,7 +21,7 @@
std::string retrofe_version_major = "0";
std::string retrofe_version_minor = "9";
std::string retrofe_version_build = "14";
std::string retrofe_version_build = "15";
std::string Version::getString( )