Skip to content

Commit 99a94f1

Browse files
committed
Relax Scene.resize to allow positionals
1 parent ec6f097 commit 99a94f1

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

shaderflow/scene.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def aspect_ratio(self, value: Union[float, str]):
420420
if (self.backend == WindowBackend.GLFW) and (self._aspect_ratio is not None):
421421
__import__("glfw").set_window_aspect_ratio(self.window._window, 2**16, int(2**16 / self._aspect_ratio))
422422

423-
def resize(self, *,
423+
def resize(self,
424424
width: Optional[int | float] = None,
425425
height: Optional[int | float] = None,
426426
ratio: Optional[float | str] = None,

website/about/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ icon: material/file-document-edit
99

1010
!!! quote ""
1111
- Move website to tremeschin.com domain
12+
- Fix `Scene.resolution = (w, h)` using positionals in `Scene.resize`
1213

1314
### 📦 v0.10.0 <small>March 12, 2026</small> {#v0.10.0}
1415

0 commit comments

Comments
 (0)