def adjustWindowAspectRatio(self, aspectRatio):
        if (CIGlobals.getSettingsMgr() is None):
            ShowBase.adjustWindowAspectRatio(self, aspectRatio)
            self.credits2d.setScale(1.0 / aspectRatio, 1.0, 1.0)
            return

        if CIGlobals.getSettingsMgr().getSetting("maspr").getValue():
            # Go ahead and maintain the aspect ratio if the user wants us to.
            ShowBase.adjustWindowAspectRatio(self, aspectRatio)
            self.credits2d.setScale(1.0 / aspectRatio, 1.0, 1.0)
        else:
            # The user wants us to keep a 4:3 ratio no matter what (old toontown feels).
            self.doOldToontownRatio()
 def doRegularRatio(self):
     ShowBase.adjustWindowAspectRatio(self, self.getAspectRatio())
 def doOldToontownRatio(self):
     ShowBase.adjustWindowAspectRatio(self, 4. / 3.)
     self.credits2d.setScale(1.0 / (4. / 3.), 1.0, 1.0)