fix blittercontainer incorrectly using minimumSize for integer scaling

git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@125 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
This commit is contained in:
sinamas 2008-02-16 02:16:21 +00:00
parent aea92e4d6b
commit e0a9a25623

View File

@ -56,9 +56,10 @@ void BlitterContainer::doLayout(const int w, const int h) {
blitter->setCorrectedGeometry(w, h, w, new_h);
}
} else {
const int scale = std::min(w / minimumWidth(), h / minimumHeight());
const int new_w = minimumWidth() * scale;
const int new_h = minimumHeight() * scale;
const QSize &src = videoDialog->sourceSize();
const int scale = std::min(w / src.width(), h / src.height());
const int new_w = src.width() * scale;
const int new_h = src.height() * scale;
blitter->setCorrectedGeometry(w, h, new_w, new_h);
}