Skip to content

Commit

Permalink
CopListReset: it's useful to return the pointer (backported from 011d…
Browse files Browse the repository at this point in the history
…f6f)
  • Loading branch information
cahirwpz committed Dec 16, 2023
1 parent 0bc9420 commit 535c594
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/copper.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ CopListT *NewCopList(int length);
void DeleteCopList(CopListT *list);

/* @brief Reuse existing copper list by resetting to initial state. */
void CopListReset(CopListT *list);
CopListT *CopListReset(CopListT *list);

/* @brief Finish off copper list by inserting special WAIT instruction. */
CopListT *CopListFinish(CopListT *list);
Expand Down
3 changes: 2 additions & 1 deletion lib/libgfx/CopListReset.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <copper.h>

void CopListReset(CopListT *list) {
CopListT *CopListReset(CopListT *list) {
list->curr = list->entry;
list->overflow = 0;
return list;
}

0 comments on commit 535c594

Please sign in to comment.