Skip to content

Commit

Permalink
showbase: fix aspect ratio calculation
Browse files Browse the repository at this point in the history
backs out part of 7a46b2c, from PR #204
  • Loading branch information
rdb committed Jan 5, 2018
1 parent c167947 commit 27fb1a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions direct/src/showbase/ShowBase.py
Expand Up @@ -1267,8 +1267,7 @@ def getAspectRatio(self, win = None):
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"):
Expand Down

0 comments on commit 27fb1a4

Please sign in to comment.