mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-02 10:16:50 +02:00
Missed else/if for scaling.
This commit is contained in:
@@ -92,7 +92,7 @@ float ViewInfo::GetHeight() const
|
||||
{
|
||||
height = MaxHeight;
|
||||
}
|
||||
if(width > MaxWidth && height <= MaxHeight)
|
||||
else if(width > MaxWidth && height <= MaxHeight)
|
||||
{
|
||||
height = scaleW * height;
|
||||
}
|
||||
@@ -137,7 +137,7 @@ float ViewInfo::GetWidth() const
|
||||
{
|
||||
width = MaxWidth;
|
||||
}
|
||||
if(height > MaxHeight && width <= MaxWidth)
|
||||
else if(height > MaxHeight && width <= MaxWidth)
|
||||
{
|
||||
width = scaleH * width;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user