Miscellaneous fixes to align with badgemagic-rs
It uses 48-pixel wide screens for .gifs.
This commit is contained in:
@@ -107,11 +107,11 @@ int anim_render(uint16_t *fb, int index, int frame) {
|
|||||||
case 4:
|
case 4:
|
||||||
if (im_width > 44) {
|
if (im_width > 44) {
|
||||||
can_restart_lr = 0;
|
can_restart_lr = 0;
|
||||||
if (frame > (im_width / 44) * 16) {
|
if (frame > (im_width / 48) * 16) {
|
||||||
can_restart_lr = 1;
|
can_restart_lr = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
x = (frame / 16) * 44;
|
x = (frame / 16) * 48;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (im_width - x < 44) {
|
if (im_width - x < 44) {
|
||||||
|
|||||||
@@ -61,8 +61,8 @@ int main_handler(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
subframe++;
|
subframe++;
|
||||||
if (subframe > 32 && flash_header_valid) {
|
if (subframe > 33 && flash_header_valid) {
|
||||||
// approximately 60fps
|
// approximately 30fps
|
||||||
subframe = 0;
|
subframe = 0;
|
||||||
|
|
||||||
uint16_t fb[44];
|
uint16_t fb[44];
|
||||||
|
|||||||
Reference in New Issue
Block a user