From 2a3a27c56d73ffc5ef94a6f11849e5f9c3ce1ed5 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Tue, 26 Mar 2024 20:28:10 +0100 Subject: [PATCH] bmx library: set bpp header field correctly on save --- compiler/res/prog8lib/cx16/bmx.p8 | 1 + docs/source/todo.rst | 2 ++ 2 files changed, 3 insertions(+) diff --git a/compiler/res/prog8lib/cx16/bmx.p8 b/compiler/res/prog8lib/cx16/bmx.p8 index aefa986a0..d076cb64f 100644 --- a/compiler/res/prog8lib/cx16/bmx.p8 +++ b/compiler/res/prog8lib/cx16/bmx.p8 @@ -170,6 +170,7 @@ save_end: sub set_bpp(ubyte bpp) { ubyte[8] depths = [0,1,1,2,2,2,2,3] vera_colordepth = depths[bpp-1] + bitsperpixel = bpp } sub set_vera_colordepth(ubyte depth) { diff --git a/docs/source/todo.rst b/docs/source/todo.rst index de4be414b..c9dad0dbd 100644 --- a/docs/source/todo.rst +++ b/docs/source/todo.rst @@ -1,6 +1,8 @@ TODO ==== +- add more optimized routine in conv to convert (u)byte to string. (it now reuses the pretty large word to string routine) + ...