diff gamelib/cursor.py @ 106:da547e148532

Some (slightly) better cursor handling.
author Jeremy Thurgood <firxen@gmail.com>
date Tue, 24 Aug 2010 13:53:49 +0200
parents c76f2fad2af5
children ab11689aec36
line wrap: on
line diff
--- a/gamelib/cursor.py	Tue Aug 24 11:57:06 2010 +0200
+++ b/gamelib/cursor.py	Tue Aug 24 13:53:49 2010 +0200
@@ -28,7 +28,8 @@
         self._cursor_group = RenderUpdates()
         self._cursor_name = ''
 
-    def draw(self, surface):
+    def draw(self, _surface):
+        surface = self.get_root().surface
         if self.rect.collidepoint(mouse.get_pos()):
             cursor = self.get_sprite_cursor()
             if cursor != self._cursor_name: