mirror of https://github.com/stella-emu/stella.git
Revert "aspect ration now affects height instead of width"
This reverts commit 0b61a71e58
.
This commit is contained in:
parent
0b61a71e58
commit
3b00fe45cd
|
@ -72,8 +72,6 @@
|
|||
|
||||
* Updated PAL palette.
|
||||
|
||||
* Aspect ratio now affects height instead of width (like on a real CRT)
|
||||
|
||||
* For UNIX systems: in the ROM launcher, when using symlinks use the
|
||||
symlink pathname instead of the underlying filesystem pathname.
|
||||
|
||||
|
|
|
@ -917,9 +917,9 @@ VideoMode::VideoMode(uInt32 iw, uInt32 ih, uInt32 sw, uInt32 sh,
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void VideoMode::applyAspectCorrection(uInt32 aspect, bool stretch)
|
||||
{
|
||||
// Height is modified by aspect ratio; other factors may be applied below
|
||||
uInt32 iw = image.width();
|
||||
uInt32 ih = image.height() / aspect * 100.0;
|
||||
// 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();
|
||||
|
||||
if(fsIndex != -1)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue