Skip to content

Commit

Permalink
Use ZRect, fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
atullo2 authored and lordmauve committed Jul 29, 2018
1 parent c5d4a9a commit 6fd07ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pgzero/screen.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pygame
import pygame.draw
from . import ptext
from .rect import RECT_CLASSES, Rect
from .rect import RECT_CLASSES, ZRect
from . import loaders


Expand Down Expand Up @@ -73,8 +73,8 @@ def __init__(self, surface):
self.width, self.height = surface.get_size()

def bounds(self):
"""Returns a Rect representing the bounds of the screen"""
return Rect((0, 0), (self.width, self.height))
"""Return a Rect representing the bounds of the screen."""
return ZRect((0, 0), (self.width, self.height))

def clear(self):
"""Clear the screen to black."""
Expand Down

0 comments on commit 6fd07ef

Please sign in to comment.