Miscellaneous fixes to align with badgemagic-rs

It uses 48-pixel wide screens for .gifs.
This commit is contained in:
Puck Meerburg
2025-12-31 22:16:49 +00:00
parent da0529dd99
commit 0a5e10134e
2 changed files with 4 additions and 4 deletions

View File

@@ -107,11 +107,11 @@ int anim_render(uint16_t *fb, int index, int frame) {
case 4:
if (im_width > 44) {
can_restart_lr = 0;
if (frame > (im_width / 44) * 16) {
if (frame > (im_width / 48) * 16) {
can_restart_lr = 1;
}
x = (frame / 16) * 44;
x = (frame / 16) * 48;
}
if (im_width - x < 44) {

View File

@@ -61,8 +61,8 @@ int main_handler(void) {
}
subframe++;
if (subframe > 32 && flash_header_valid) {
// approximately 60fps
if (subframe > 33 && flash_header_valid) {
// approximately 30fps
subframe = 0;
uint16_t fb[44];