# HG changeset patch # User Jeremy Thurgood # Date 1282654385 -7200 # Node ID 5e704ee7b84b65f5c9cced6f21a7dbd249ae8b53 # Parent 13d8cb1d596251a250f540eca36edd4c811e8243 Remove "in-widget" check and always draw cursor. diff -r 13d8cb1d5962 -r 5e704ee7b84b gamelib/cursor.py --- a/gamelib/cursor.py Tue Aug 24 14:51:22 2010 +0200 +++ b/gamelib/cursor.py Tue Aug 24 14:53:05 2010 +0200 @@ -31,19 +31,18 @@ def draw_all(self, _surface): Widget.draw_all(self, _surface) surface = self.get_root().surface - if self.rect.collidepoint(mouse.get_pos()): - cursor = self.get_sprite_cursor() - if cursor != self._cursor_name: - if self.get_sprite_cursor() is None: - pygame.mouse.set_visible(1) - self._cursor_group.empty() - else: - pygame.mouse.set_visible(0) - self._cursor_group.empty() - self._cursor_group.add(CursorSprite(cursor)) - if cursor is not None: - self._cursor_group.update() - self._cursor_group.draw(surface) + cursor = self.get_sprite_cursor() + if cursor != self._cursor_name: + if self.get_sprite_cursor() is None: + pygame.mouse.set_visible(1) + self._cursor_group.empty() + else: + pygame.mouse.set_visible(0) + self._cursor_group.empty() + self._cursor_group.add(CursorSprite(cursor)) + if cursor is not None: + self._cursor_group.update() + self._cursor_group.draw(surface) def mouse_delta(self, event): self.invalidate()