Compare commits

..

2 commits

Author SHA1 Message Date
10910060ec Correct incorrect program name 2023-11-28 09:31:55 -08:00
613139b95c Fix off-by-one error 2023-11-28 09:24:07 -08:00
2 changed files with 1 additions and 2 deletions

View file

@ -13,7 +13,7 @@ TARGETS := cx16
# Name of the final, single-file executable. # Name of the final, single-file executable.
# Default: name of the current dir with target name appended # Default: name of the current dir with target name appended
PROGRAM := b16view PROGRAM := bmxview
# Path(s) to additional libraries required for linking the program # Path(s) to additional libraries required for linking the program
# Use only if you don't want to place copies of the libraries in SRCDIR # Use only if you don't want to place copies of the libraries in SRCDIR

View file

@ -166,7 +166,6 @@ int uploadimage(const char *filename) {
printf("%u palette entries significant\nstarting at %u.\n", significant_palette_entries, significant_palette_start); printf("%u palette entries significant\nstarting at %u.\n", significant_palette_entries, significant_palette_start);
} }
imgdatastart = read16(); imgdatastart = read16();
--imgdatastart;
printf("Image starts at 0-indexed offset %4x\n", imgdatastart); printf("Image starts at 0-indexed offset %4x\n", imgdatastart);
direct_to_vera = width == vera_w && height == vera_h; direct_to_vera = width == vera_w && height == vera_h;
if ((int8_t)read8() == -1) { if ((int8_t)read8() == -1) {