Skip to content

Add SurfaceWindow subclass, remove borrowed window logic #2830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions buildconfig/stubs/pygame/_sdl2/video.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ class Renderer:
vsync: bool = False,
target_texture: bool = False,
) -> None: ...
@classmethod
def from_window(cls, window: Window) -> Renderer: ...
draw_blend_mode: int
@property
def draw_color(self) -> Color: ...
Expand Down
5 changes: 0 additions & 5 deletions docs/reST/ref/sdl2_video.rst
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,6 @@
A value of ``None`` means that no custom rendering target was set and the
Renderer's window will be used as the target.

.. classmethod:: from_window

| :sl:`Create a Renderer from an existing window`
| :sg:`from_window(window) -> Renderer`

.. method:: clear

| :sl:`Clear the current rendering target with the drawing color`
Expand Down
6 changes: 3 additions & 3 deletions src_c/_sdl2/audio.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src_c/_sdl2/controller_old.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src_c/_sdl2/mixer.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src_c/_sdl2/sdl2.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading