nuttx-apps/games/NXDoom
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
..
pcsound games/NXDoom: Initial port of Chocolate DOOM to NuttX. 2026-06-30 15:22:55 -03:00
src games/NXDoom: validate framebuffer pixel format, not just depth. 2026-07-24 15:25:59 +05:30
textscreen games/NXDoom: Fix build warnings 2026-07-02 09:08:46 -03:00
.gitignore games/NXDoom: Initial port of Chocolate DOOM to NuttX. 2026-06-30 15:22:55 -03:00
AUTHORS apps/games/NXDoom: Original Chocolate DOOM source 2026-06-30 15:22:55 -03:00
COPYING.md apps/games/NXDoom: Original Chocolate DOOM source 2026-06-30 15:22:55 -03:00
Kconfig games/NXDoom: fix out-of-bounds framebuffer write in plane rendering. 2026-07-24 15:25:58 +05:30
Make.defs games/NXDoom: Initial port of Chocolate DOOM to NuttX. 2026-06-30 15:22:55 -03:00
Makefile games/NXDoom: Initial port of Chocolate DOOM to NuttX. 2026-06-30 15:22:55 -03:00