Skip to content

Window: setPictureAspect, the picture's shape changed live - #156

Closed
boubou666 wants to merge 2 commits into
masterfrom
amp/picture-aspect
Closed

boubou666 wants to merge 2 commits into
masterfrom
amp/picture-aspect

Conversation

@boubou666

Copy link
Copy Markdown
Contributor

setPictureAspect(float): the picture's shape changed while the window runs (0 gives WindowOptions::aspect back), beside setPictureCrop. A port whose game draws a wider view itself (Amplitude_Recomp's widescreen option, which widens the game's camera) shows the picture at 16:9, letterboxed, without reopening the window. Nothing changes for a port that does not call it.

Built on #150 (its commit is the first one here); once #150 is merged, only c72cdcf remains.

Checked in Amplitude_Recomp: the training song and Neotropolis's results screen in 16:9 with the wider camera, the HUD kept 4:3 in the middle.

🤖 Generated with Claude Code

boubou666 and others added 2 commits November 25, 2026 19:59
…nit; whole stream reads (opt-in)

What Amplitude_Recomp answered in its port, generic SDK behaviour:
- sceIoctl: request 1, the status a file opened with O_NOWAIT is polled with, is "done" (*arg = 0): the native
  sceOpen / sceRead have finished as they return. Any other request: -1.
- sceSifInitCmd, sceSifSetDChain, isceSifSetDChain: nothing to set up or arm (Onimusha_Recomp answered
  sceSifSetDChain the same way in its port).
- sceIpuInit: no IPU to reset.
- CdState::wholeStreamReads (off by default): a sceCdStRead that does not wait brings all its sectors or none,
  as a console's drive fills the stream ring a bank at a time. Amplitude's movie player resumes its demux at
  buffer + 0x4000 - bytes left and skipped a sector after a short read.
- texture.h: Texture::rgba carries the GS's alpha (0x80 opaque); the comment said 255.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A port whose game draws a wider view itself (a widescreen option that widens its camera) shows
the picture at that shape, letterboxed, without reopening the window. 0 gives WindowOptions'
aspect back; setPictureCrop works on the shape now in effect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@boubou666

Copy link
Copy Markdown
Contributor Author

Superseded: master already has setPictureAspect / pictureAspect with the same signatures (d111e97, "Video: widescreen setting and a live picture aspect"). Amplitude builds and runs against master's version, so this PR's commit is dropped from the stack. #160 is rebased onto #150 alone.

@boubou666 boubou666 closed this Nov 27, 2026
@boubou666
boubou666 deleted the amp/picture-aspect branch November 27, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant