mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-12 17:18:55 +01:00
Fixed width < 0 scaling issues.
This commit is contained in:
parent
c5cfa7b8fb
commit
ecaf871a9e
@ -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;
|
||||
}
|
||||
|
||||
@ -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( )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user