Skip to content

Commit 011f7ff

Browse files
authored
Merge pull request #2900 from oddbookworm/fix-surface-attribute-indentation
fixed indentation of surface attributes
2 parents 19a17c9 + e68950f commit 011f7ff

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

docs/reST/ref/surface.rst

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -487,15 +487,15 @@
487487
methods - or by using :mod:`pygame.surfarray`/:mod:`pygame.PixelArray`.
488488

489489
This function will temporarily lock and unlock the Surface as needed.
490-
490+
491491
.. versionchanged:: 2.3.1 can now also accept both float coordinates and Vector2s for pixels.
492-
492+
493493
Returning a Color instead of tuple. Use ``tuple(surf.get_at((x,y)))``
494494
if you want a tuple, and not a Color. This should only matter if
495495
you want to use the color as a key in a dict.
496-
496+
497497
.. versionaddedold:: 1.9
498-
498+
499499
.. ## Surface.get_at ##
500500
501501
.. method:: set_at
@@ -576,7 +576,7 @@
576576
Set the full palette for an 8-bit Surface. This will replace the colors in
577577
the existing palette. A partial palette can be passed and only the first
578578
colors in the original palette will be changed.
579-
579+
580580
This function has no effect on a Surface with more than 8-bits per pixel.
581581

582582
.. ## Surface.set_palette ##
@@ -588,7 +588,7 @@
588588
589589
Set the palette value for a single entry in a Surface palette. The index
590590
should be a value from 0 to 255.
591-
591+
592592
This function has no effect on a Surface with more than 8-bits per pixel.
593593

594594
.. ## Surface.set_palette_at ##
@@ -762,7 +762,7 @@
762762

763763
| :sl:`get the rectangular area of the Surface`
764764
| :sg:`get_frect(\**kwargs) -> FRect`
765-
765+
766766
This is the same as :meth:`Surface.get_rect` but returns an FRect. FRect is similar
767767
to Rect, except it stores float values instead.
768768

@@ -1026,38 +1026,38 @@
10261026
superior results when blitting an alpha surface onto another surface with alpha - assuming both
10271027
surfaces contain pre-multiplied alpha colors.
10281028

1029-
There is a `tutorial on premultiplied alpha blending here. <tutorials/en/premultiplied-alpha>`
1029+
There is a `tutorial on premultiplied alpha blending here. <tutorials/en/premultiplied-alpha>`_
10301030

10311031
.. versionadded:: 2.1.4
10321032

10331033
.. ## Surface.premul_alpha ##
10341034
1035-
.. attribute:: width
1035+
.. attribute:: width
10361036

1037-
| :sl:`Surface width in pixels (read-only)`
1038-
| :sg:`width -> int`
1037+
| :sl:`Surface width in pixels (read-only)`
1038+
| :sg:`width -> int`
10391039
1040-
Read-only attribute. Same as :meth:`get_width()`
1040+
Read-only attribute. Same as :meth:`get_width()`
10411041

1042-
.. versionadded:: 2.5.0
1042+
.. versionadded:: 2.5.0
10431043

1044-
.. attribute:: height
1044+
.. attribute:: height
10451045

1046-
| :sl:`Surface height in pixels (read-only)`
1047-
| :sg:`height -> int`
1046+
| :sl:`Surface height in pixels (read-only)`
1047+
| :sg:`height -> int`
10481048
1049-
Read-only attribute. Same as :meth:`get_height()`
1049+
Read-only attribute. Same as :meth:`get_height()`
10501050

1051-
.. versionadded:: 2.5.0
1051+
.. versionadded:: 2.5.0
10521052

1053-
.. attribute:: size
1053+
.. attribute:: size
10541054

1055-
| :sl:`Surface size in pixels (read-only)`
1056-
| :sg:`height -> tuple[int, int]`
1055+
| :sl:`Surface size in pixels (read-only)`
1056+
| :sg:`height -> tuple[int, int]`
10571057
1058-
Read-only attribute. Same as :meth:`get_size()`
1058+
Read-only attribute. Same as :meth:`get_size()`
10591059

1060-
.. versionadded:: 2.5.0
1060+
.. versionadded:: 2.5.0
10611061

10621062
.. ## pygame.Surface ##
10631063

0 commit comments

Comments
 (0)