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 a9cdbe5 commit 688c580
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions src/video/video.c
Expand Up @@ -199,13 +199,8 @@ 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++;
}

void video_copy_base_pal_range(const palette *src, int src_start, int dst_start, int amount) {
memcpy(state.base_palette->data + dst_start, src->data + src_start, amount * 3);
memcpy(g_video_state.base_palette->data + dst_start, src->data + src_start, amount * 3);
video_force_pal_refresh();
}

Expand Down
1 change: 0 additions & 1 deletion src/video/video.h
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);
void video_copy_base_pal_range(const palette *src, int src_start, int dst_start, int amount);
screen_palette *video_get_pal_ref();

Expand Down

0 comments on commit 688c580

Please sign in to comment.