fix enableSoftwareMousePointer

This commit is contained in:
David Rose 2005-05-17 23:51:54 +00:00
parent 63a62a804a
commit 8e2ff8e92e
1 changed files with 4 additions and 3 deletions

View File

@ -965,10 +965,11 @@ class ShowBase(DirectObject.DirectObject):
aspectRatio = self.getAspectRatio()
# Scale the smiley face to 32x32 pixels.
height = self.win.getYSize()
lilsmiley.setScale(
32.0 / self.win.getHeight() / aspectRatio,
1.0, 32.0 / self.win.getHeight())
#self.mouseWatcherNode.setGeometry(mouseViz)
32.0 / height / aspectRatio,
1.0, 32.0 / height)
self.mouseWatcherNode.setGeometry(mouseViz.node())
def getAlt(self):
return self.mouseWatcherNode.getModifierButtons().isDown(