Partially revert commit for #368; we need more work before this can be enabled.

Fixes issue with fullscreen TIA image disappearing.
This commit is contained in:
Stephen Anthony 2019-02-18 18:17:08 -03:30
parent f511f9fbe7
commit 9735806b2f
1 changed files with 6 additions and 0 deletions

View File

@ -937,9 +937,15 @@ VideoMode::VideoMode(uInt32 iw, uInt32 ih, uInt32 sw, uInt32 sh,
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void VideoMode::applyAspectCorrection(uInt32 aspect, bool stretch) void VideoMode::applyAspectCorrection(uInt32 aspect, bool stretch)
{ {
#if 0 // FIXME - more work is required here for issue #368
// Height 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 = image.width(); uInt32 iw = image.width();
uInt32 ih = image.height() / aspect * 100.0; uInt32 ih = image.height() / aspect * 100.0;
#else
// Width is modified by aspect ratio; other factors may be applied below
uInt32 iw = uInt32(float(image.width() * aspect) / 100.0);
uInt32 ih = image.height();
#endif
if(fsIndex != -1) if(fsIndex != -1)
{ {