Preview scaling: width can be a multiple of 2, not 8

parent 1352ed80
Pipeline #14547 passed with stage
in 15 minutes and 51 seconds
......@@ -1826,8 +1826,8 @@ void GLWidget::updateScaling()
m_profileSize = profileSize;
} else {
int width = previewHeight * pCore->getCurrentDar() / pCore->getCurrentSar();
if (width % 8 > 0) {
width += 8 - width % 8;
if (width % 2 > 0) {
width ++;
}
m_profileSize = QSize(width, previewHeight);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment