showbase: fix aspect ratio calculation

backs out part of 7a46b2ca60aacc1b8f1c87a7a101546bd6214120, from PR #204
This commit is contained in:
rdb 2018-01-05 15:00:21 +01:00
parent c1679472cd
commit 27fb1a4a9e

View File

@ -1267,8 +1267,7 @@ class ShowBase(DirectObject.DirectObject):
if win == None:
win = self.win
if win != None and win.getSideBySideStereo() and \
win.hasSize() and win.getSbsLeftYSize() != 0:
if win != None and win.hasSize() and win.getSbsLeftYSize() != 0:
aspectRatio = float(win.getSbsLeftXSize()) / float(win.getSbsLeftYSize())
else:
if win == None or not hasattr(win, "getRequestedProperties"):