Clarify where 35:24 comes from.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2017-07-09 16:49:40 +01:00
parent 18e0d3b6b6
commit 8295c686e9

View file

@ -36,8 +36,8 @@ void Emulator::set43AspectRatio(QMdiSubWindow * window)
const QSize & size = video->size();
const double area = size.height() * size.width();
const int numerator = 35;
const int denominator = 24;
const int numerator = 35; // 7 * 40
const int denominator = 24; // 8 * 24
const int x = sqrt(area / (numerator * denominator));
const QSize target(numerator * x, denominator * x);