Skip to content

Commit d0d02d1

Browse files
committed
Replace int values with float values
1 parent c456c83 commit d0d02d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/reST/ref/surface.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@
719719

720720
You can pass keyword argument values to this function. These named values
721721
will be applied to the attributes of the FRect before it is returned. An
722-
example would be ``mysurf.get_frect(center=(100, 100))`` to create a
722+
example would be ``mysurf.get_frect(center=(100.0, 100.0))`` to create a
723723
rectangle for the Surface centered at a given position.
724724

725725
:ref:`Surface.get_rect`

test/surface_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def test_get_rect(self):
571571

572572
def test_get_frect(self):
573573
"""Ensure a surface's frect can be retrieved."""
574-
size = (16, 16)
574+
size = (16.0, 16.0)
575575
surf = pygame.Surface(size)
576576
frect = surf.get_frect()
577577

0 commit comments

Comments
 (0)