Skip to content

Screensaver: the shelf's covers and snaps, covers clear of its slabs - #483

Draft
tarikbc wants to merge 4 commits into
mainfrom
saver-art
Draft

tarikbc wants to merge 4 commits into
mainfrom
saver-art

Conversation

@tarikbc

@tarikbc tarikbc commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

moroboshi69's screensaver on the Brick only ever showed his PlayStation. His other systems keep their pictures where EmulationStation's gamelist.xml names them, <image>./images/...</image>. The shelf shows those, but the screensaver read .media alone. While I fixed that, I found that a tall cover ran under "Play / Any other button goes back". This fixes both. A video snap stays as it is: the whole screen, the slabs over it.

The shelf's pictures. The screensaver now asks the shelf's own lookup. game_media_listed (src/esmedia.h) is game_media's question for a whole shelf at once. It answers from listings and the folder's index, and never looks at a file per game: the game's own stems in .media, else es_has_video or the new es_has_cover. The shelf's play mark (game_has_snap) asks it too, so the two cannot differ. The file then comes from game_media, as the shelf's snap and Recents' cover take it. es_has_cover reads the folder's picture folders once, by es_media's own name tables (COVER_NAMES, LOGO_NAMES), the same as the video names, so the names are written in one place. --saver cover with no --saver-pic now shows a cover from the card, picked as the screensaver picks one.

A cover clear of the slabs. The slabs keep their look and their places. saver_art_place (src/saver.h) puts a cover in the middle of the screen's width, as large as it fits 12 clear of both slabs: in the band between them, or in the column between them when that is larger. It is still at most a third larger than it is.

A snap over the whole screen, as before. I chose to keep the video snap as main draws it: as large as the screen takes it, in its own shape, with the slabs over it. saver_fit is the one fit both use, the whole screen for a snap and saver_art_place's box for a cover. Every snap frame is the same as main's, pixel for pixel, on the Pixel 2, the Brick and the Smart Pro.

A tall cover, before and after:

A 4:3 and a 16:9 snap, unchanged from main:

Spanish and Italian on the Pixel 2 (dark), German (dark) and French (light) on the Brick:

The Smart Pro's wide screen: Japanese (light), Chinese and Portuguese (dark):

Checks:

  • check-saver-art (new) runs the real launcher in desk mode past the screensaver's delay on five cards: gamelist.xml's ./images/ covers, EmulationStation's images/-thumb.png, its videos/-video.mp4, a game's own .media cover, and nothing at all. The first three failed before this.
  • check-saver-place (new) reads the launcher's frames, with a picture of one flat color. A cover must be a whole rectangle, with nothing over it. A snap's box must be the whole screen's width or height, in the middle, within a pixel. It shoots tall, wide and square covers and 4:3, 16:9 and tall snaps on the Pixel 2, the Brick and the Smart Pro. It shoots the tall cover and the 4:3 snap in all eight languages and both themes, with a long name in the game's slab: 108 frames. With main's cover box, 25 of them fail (the tall cover on the Pixel 2 and the Brick in most languages). With snaps kept clear of the slabs, all 54 snap frames fail.
  • check-saver holds saver_art_place for eight shapes and nine pairs of slab widths, and saver_fit for four snap shapes on the 4:3 and the wide canvas. check-esmedia holds es_has_cover and game_media_listed against es_media.
  • make native and the full make check (CHECK_JOBS=4) pass: 276 checks.

The usb-hang fix touches saver_pass in the same file. Its helper checked that our changes do not overlap.

DESIGN.md 11.37 has both rules. The shots are on the branch pr-shots/saver-art-2, for this description only.

Reported on Discord.

moroboshi69's screensaver on the Brick only ever showed his PlayStation.
His other systems keep their pictures where EmulationStation's
gamelist.xml names them, <image>./images/...</image>, and the shelf shows
those, but the screensaver read .media alone: a .media listing for its
games, then box_art_path or snaps_path for the file.

It asks the shelf's own lookup now. game_media_listed (src/esmedia.h) is
game_media's question for a whole shelf at once, from listings and the
folder's index, never a file looked at per game: the game's own stems in
.media, else es_has_video or the new es_has_cover. The shelf's play mark
(game_has_snap) asks it too, so the two cannot differ. The file then
comes from game_media, as the shelf's snap and Recents' cover take it.
es_has_cover reads the folder's picture folders once, by es_media's own
name tables (COVER_NAMES, LOGO_NAMES), as the video names already were,
so the names are written once.

--saver cover with no --saver-pic now shows a cover of the card's, picked
as the screensaver picks one.

check-saver-art runs the real launcher in desk mode past the
screensaver's delay on five cards: gamelist.xml's ./images/ covers,
EmulationStation's images/<game>-thumb.png, its videos/<game>-video.mp4,
a game's own .media cover, and nothing at all. The first three failed
before this. check-esmedia holds es_has_cover and game_media_listed
against es_media. DESIGN.md 11.37 has the rule.

Reported on Discord.
A tall cover ran under "Play / Any other button goes back" at the top
right, and a snap played under both slabs, the keys' and the game's.
The two slabs keep their look and their places; the picture goes where
they are not.

saver_art_place (src/saver.h) puts it in the middle of the screen's
width, as large as it fits 12 clear of both slabs: in the band between
them, the whole width, or in the column between them, the whole height,
when that is larger. A cover is still at most a third larger than it
is, and a snap at most eight times. saver_draw works out the slabs'
places first, from the words they hold in the language shown, then the
picture's.

check-saver-place reads the real launcher's frames: a picture of one
flat color must be a whole rectangle of it, nothing over it. Tall, wide
and square covers and 4:3, 16:9 and tall snaps on the Pixel 2, the
Brick and the Smart Pro, and the tall cover and the 4:3 snap in all
eight languages and both themes, with a long name in the game's slab:
90 of its 108 frames failed before this. check-saver holds
saver_art_place for eight shapes and nine pairs of slab widths.
DESIGN.md 11.37 has the rule.
A cover keeps clear of the two slabs, but a snap goes back to the whole
screen with the slabs over it, as it was before this branch. That is the
look I want for a moving picture; the cover is the one that needed it.

saver_fit (src/saver.h) is the one fit both use: the snap's box is the
whole screen, at most 8 times its size, as main draws it; the cover's is
saver_art_place's, clear of both slabs. The snap takes its size from
snapv_texture again, with the video's aspect, not the texture's.

check-saver-place now reads every snap's box as the whole screen's width
or height, in its middle, within a pixel, and every cover's box whole.
With snaps clear of the slabs, all 54 snap frames fail; with main's box
for covers, 25 frames fail, the tall cover in most languages on the
Pixel 2 and the Brick. Every snap frame is the same as main's, pixel for
pixel, on the three handhelds. check-saver holds saver_fit for four snap
shapes on the 4:3 and the wide canvas, and saver_art_place for covers.
@tarikbc tarikbc changed the title Screensaver: the shelf's covers and snaps, clear of its slabs Screensaver: the shelf's covers and snaps, covers clear of its slabs Nov 25, 2026

This branch has not been deployed

No deployments
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