Skip to content

Commit

Permalink
Drop unnecessary video_copy_pal_range
Browse files Browse the repository at this point in the history
  • Loading branch information
katajakasa committed May 1, 2023
1 parent dc2bcb8 commit 652c545
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/video/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,6 @@ palette *video_get_base_palette() {
return g_video_state.base_palette;
}

void video_copy_pal_range(const palette *src, int src_start, int dst_start, int amount) {
memcpy(g_video_state.screen_palette->data + dst_start * 3, src->data + src_start * 3, amount * 3);
g_video_state.screen_palette->version++;
}

screen_palette *video_get_pal_ref() {
return g_video_state.screen_palette;
}
Expand Down
1 change: 0 additions & 1 deletion src/video/video.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ void video_render_bg_separately(bool separate);
void video_set_base_palette(const palette *src);
palette *video_get_base_palette();
void video_force_pal_refresh();
void video_copy_pal_range(const palette *src, int src_start, int dst_start, int amount);
screen_palette *video_get_pal_ref();

#endif // VIDEO_H

0 comments on commit 652c545

Please sign in to comment.