mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-07 05:27:24 +00:00
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> |
||
|---|---|---|
| .. | ||
| brickmatch | ||
| cgol | ||
| match4 | ||
| NXDoom | ||
| snake | ||
| .gitignore | ||
| CMakeLists.txt | ||
| Make.defs | ||
| Makefile | ||