initial update for #368

This commit is contained in:
thrust26 2018-12-27 11:47:41 +01:00
parent 67ac657fcf
commit f86ba39c88
1 changed files with 3 additions and 3 deletions

View File

@ -937,9 +937,9 @@ VideoMode::VideoMode(uInt32 iw, uInt32 ih, uInt32 sw, uInt32 sh,
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void VideoMode::applyAspectCorrection(uInt32 aspect, bool stretch) void VideoMode::applyAspectCorrection(uInt32 aspect, bool stretch)
{ {
// Width is modified by aspect ratio; other factors may be applied below // Height is modified by aspect ratio; other factors may be applied below
uInt32 iw = uInt32(float(image.width() * aspect) / 100.0); uInt32 iw = image.width();
uInt32 ih = image.height(); uInt32 ih = image.height() / aspect * 100.0;
if(fsIndex != -1) if(fsIndex != -1)
{ {