nuttx-apps/games
aviralgarg05 b51959ea77 games/NXDoom: validate framebuffer pixel format, not just depth.
blit_screen() branches purely on pinfo.bpp (16 vs 32) to decide
between the RGB565 and RGB32 conversion paths, but bit depth alone
doesn't determine pixel layout - multiple incompatible formats share
the same depth. i_init_graphics() now checks vinfo.fmt against the one
format blit_screen() actually emits for each depth (FB_FMT_RGB16_565
for 16bpp, FB_FMT_RGB32 for 32bpp) and fails loudly via i_error() on
any mismatch or unsupported depth, instead of silently misinterpreting
the framebuffer's actual pixel layout.

Assisted-by: Claude:claude-sonnet-5
Signed-off-by: aviralgarg05 <gargaviral99@gmail.com>
2026-07-24 15:25:59 +05:30
..
brickmatch games/brickmatch: Add led matrix output option 2025-02-26 11:31:02 -03:00
cgol game: Aligned Cmake with Make 2025-11-14 22:40:17 +08:00
match4 games/match4: Add new match4 game 2025-07-12 08:38:32 -03:00
NXDoom games/NXDoom: validate framebuffer pixel format, not just depth. 2026-07-24 15:25:59 +05:30
snake games/snake: Change consolekey magic numbers with ASCII macros 2025-07-16 10:32:16 +08:00
.gitignore apps/games: Add shift game 2022-07-31 13:41:43 +03:00
CMakeLists.txt game: Aligned Cmake with Make 2025-11-14 22:40:17 +08:00
Make.defs games: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00
Makefile games: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00