Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fjtrujy
Copy link
Member

@fjtrujy fjtrujy commented May 13, 2025

Description

In the same way, we have an option to draw some text on the screen, to add a way of generating a BMP from the current content of the screen would be useful for debugging purposes.
So this PR adds an easy and optimal way of generating the screenshot.
It just uses static memory for that, and it does it line by line, so it barely consumes RAM.

I have created a dummy sample in the src/samples/debug/screenshot where I saw how this function is used:

screenshot

Off topic:

The main reason why I'm adding this feature is that I want to start running screenshot testing over some of the GU samples we have in PSPSDK.
Using PPSSPPHeadless, we can run several tests that will be executed when a PR is created. How I plan to do some refactors over sceGu I want to be sure I'm not going to break anything.

Cheers

@fjtrujy fjtrujy merged commit 01cde97 into pspdev:master May 14, 2025
1 check passed
@fjtrujy fjtrujy deleted the take_screenshot branch May 14, 2025 10:51
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.

2 participants