mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -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:
|
if win == None:
|
||||||
win = self.win
|
win = self.win
|
||||||
|
|
||||||
if win != None and win.getSideBySideStereo() and \
|
if win != None and win.hasSize() and win.getSbsLeftYSize() != 0:
|
||||||
win.hasSize() and win.getSbsLeftYSize() != 0:
|
|
||||||
aspectRatio = float(win.getSbsLeftXSize()) / float(win.getSbsLeftYSize())
|
aspectRatio = float(win.getSbsLeftXSize()) / float(win.getSbsLeftYSize())
|
||||||
else:
|
else:
|
||||||
if win == None or not hasattr(win, "getRequestedProperties"):
|
if win == None or not hasattr(win, "getRequestedProperties"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user