Skip to content

Commit

Permalink
Merge pull request #28 from kienvo/fix-linked-list
Browse files Browse the repository at this point in the history
fix: Framebuffer linked list is misplaced on append
  • Loading branch information
fcartegnie authored Jun 24, 2024
2 parents 8039fa4 + af1ffcc commit 0d44481
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fb_t *fblist_insert(fb_t *at, fb_t *new)

fb_t *fblist_append(fb_t *new)
{
fblist_insert(new, tail);
fblist_insert(tail, new);
tail = new;
return new;
}
Expand Down
1 change: 1 addition & 0 deletions src/xbm.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ void xbm2fb(xbm_t *xbm, uint16_t *fb, int col, int row)
for (int i=0; i < xbm->w; i++) {
fb[col+i] = tmpfb[i];
}
free(tmpfb);
}

void xbm2fb_dirty(xbm_t *xbm, uint16_t *fb, int col, int row)
Expand Down

0 comments on commit 0d44481

Please sign in to comment.