Skip to content

Commit

Permalink
Merge pull request melonDS-emu#1282 from gal20/scale_fix
Browse files Browse the repository at this point in the history
Fix screen scaling error
  • Loading branch information
nadiaholmquist authored Oct 4, 2022
2 parents 1a60237 + dfb2111 commit aa9a6ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/qt_sdl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -868,9 +868,9 @@ QSize ScreenHandler::screenGetMinSize(int factor = 1)
else // hybrid
{
if (isHori)
return QSize(h+gap+h, 3*w +(4*gap) / 3);
return QSize(h+gap+h, 3*w + (int)ceil((4*gap) / 3.0));
else
return QSize(3*w +(4*gap) / 3, h+gap+h);
return QSize(3*w + (int)ceil((4*gap) / 3.0), h+gap+h);
}
}

Expand Down

0 comments on commit aa9a6ce

Please sign in to comment.