Browse Source

fix enableSoftwareMousePointer

David Rose 20 years ago
parent
commit
8e2ff8e92e
1 changed files with 4 additions and 3 deletions
  1. 4 3
      direct/src/showbase/ShowBase.py

+ 4 - 3
direct/src/showbase/ShowBase.py

@@ -965,10 +965,11 @@ class ShowBase(DirectObject.DirectObject):
 
 
         aspectRatio = self.getAspectRatio()
         aspectRatio = self.getAspectRatio()
         # Scale the smiley face to 32x32 pixels.
         # Scale the smiley face to 32x32 pixels.
+        height = self.win.getYSize()
         lilsmiley.setScale(
         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):
     def getAlt(self):
         return self.mouseWatcherNode.getModifierButtons().isDown(
         return self.mouseWatcherNode.getModifierButtons().isDown(