feat(videoout): use sce_sys/icon0.png as the window icon #1080
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1080"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-07T09:43:53Z.
What
The game window now uses the title's icon. When
/app0/sce_sys/icon0.pngexists,DisplayWindowdecodes it with the existingdecoder_png(RGBA8) and sets it withSDL_SetWindowIconright after the window is created.This completes the icon work:
icon0.pngin the generated Windows.exe. Explorer shows it, and SDL uses it as the window class icon..desktopentry, so Linux file managers and launchers show the icon.The icon bytes come from the existing AppMetadata
HasAppIcon/GetAppIconData, which already check the PNG signature. Withouticon0.pngnothing changes. If the icon can't be decoded, window creation throws, like the otherDisplayWindowfailures.libSceVideoOutnow linksdecoder_png. No new dependencies or flags.Tested
Linux (Arch, KDE Plasma, Wayland session):
libSceVideoOutbuilds, andguest_video_out_wqhd_detectionpasses.SDL_SetWindowIconpath, a real 512×512icon0.pngandSDL_VIDEODRIVER=x11:_NET_WM_ICONis 512×512, and pixel (100,100) reads0xffc91312(ARGB), which matches the decoded RGBAc9 13 12 ff, so the channel order is correct.mainplus other open PRs,SDL_VIDEODRIVER=x11under XWayland: the game window's_NET_WM_ICON(read withXGetWindowProperty) is 512×512, and pixel (100,100) is0xffc91312, the same as in the standalone check. (xpropprints the property as empty because it is about 1 MiB.)Not tested: native Wayland (shows only where the compositor supports
xdg-toplevel-icon-v1) and Windows.No automated test: it needs a real window and display, which CI doesn't have.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T03:25:34Z.
The Tested section still has the hidden
FILL IN after the game runline; please add the title run or remove it.Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-08T16:52:12Z.
Replaced the placeholder with the title run. On PPSA14632 under XWayland, the game window's
_NET_WM_ICONis the 512×512icon0.png, and a sampled pixel matches the decoded PNG. I read it withXGetWindowProperty, becausexpropprints a property that large (about 1 MiB) as empty.Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T19:42:44Z.
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
57a529d5, merged ontomain8b393b6ein one build with 31 other PRs that had no Windows run.windows_iconandwindows_icon_resourcepass.guest_offline_imports, broken by #2359 (reported there).No title was run.
🤖 Addressed by Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T22:03:03Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceVideoOut/CMakeLists.txtL19Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-09T22:16:41Z.
Checked on Linux: builds and full ctest passes (548/548) merged onto current
main; CI is green on the head (linux, windows, conventions). The RGBA8 output ofDecoder::Png::DecodematchesSDL_PIXELFORMAT_RGBA32, and the surface is freed. Windows build confirmed by @popcoder565. Merging.