mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
showbase: fix aspect ratio calculation
backs out part of 7a46b2ca60aacc1b8f1c87a7a101546bd6214120, from PR #204
This commit is contained in:
parent
c1679472cd
commit
27fb1a4a9e
@ -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"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user