Skip to content

Commit

Permalink
call onreisize
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjackyuanjie committed Jan 22, 2025
1 parent dccc029 commit 527b0ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mods/dr_game/Difficult_Rocket_rs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ class WgpuRender:
def on_draw(self) -> None:
...

def on_resize(self, width: int, height: int) -> None:
...

class SR1PartType_rs: # NOQA
"""
用于从 rust 中读取 SR1PartType
Expand Down
1 change: 1 addition & 0 deletions mods/dr_game/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def render_hacks(x, y):
return
render = render_hack()
if render is not None:
render.on_resize(main_window.width, main_window.height)
self.hacks = render
logger.info("render_hack_init", tag="dr_game_hacks")

Expand Down

0 comments on commit 527b0ee

Please sign in to comment.