mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
fix #906
This commit is contained in:
@ -348,6 +348,9 @@ void SetupScreenLayout(int screenWidth, int screenHeight,
|
|||||||
float primScale = std::min(screenWidth / primHSize, screenHeight / primVSize);
|
float primScale = std::min(screenWidth / primHSize, screenHeight / primVSize);
|
||||||
float secScale = 1.f;
|
float secScale = 1.f;
|
||||||
|
|
||||||
|
if (integerScale)
|
||||||
|
primScale = floorf(primScale);
|
||||||
|
|
||||||
if (layout == 0)
|
if (layout == 0)
|
||||||
{
|
{
|
||||||
if (screenHeight - primVSize * primScale < secVSize)
|
if (screenHeight - primVSize * primScale < secVSize)
|
||||||
@ -365,8 +368,8 @@ void SetupScreenLayout(int screenWidth, int screenHeight,
|
|||||||
|
|
||||||
if (integerScale)
|
if (integerScale)
|
||||||
{
|
{
|
||||||
primScale = floor(primScale);
|
primScale = floorf(primScale);
|
||||||
secScale = floor(secScale);
|
secScale = floorf(secScale);
|
||||||
}
|
}
|
||||||
|
|
||||||
M23_Scale(primMtx, primScale);
|
M23_Scale(primMtx, primScale);
|
||||||
|
Reference in New Issue
Block a user