From bfc6fb04f4ce9d2ec5bba01ff821666d05df6e36 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sun, 19 Jun 2022 18:56:23 +0300 Subject: [PATCH] Cleanup palette.h See #42 --- src/palette.cc | 8 +++++--- src/palette.h | 3 --- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/palette.cc b/src/palette.cc index 57c6f7d..8db862a 100644 --- a/src/palette.cc +++ b/src/palette.cc @@ -8,8 +8,10 @@ #include +static void _palette_reset_(); + // 0x6639D0 -unsigned char gPalette[256 * 3]; +static unsigned char gPalette[256 * 3]; // 0x663CD0 unsigned char gPaletteWhite[256 * 3]; @@ -18,7 +20,7 @@ unsigned char gPaletteWhite[256 * 3]; unsigned char gPaletteBlack[256 * 3]; // 0x6642D0 -int gPaletteFadeSteps; +static int gPaletteFadeSteps; // 0x493A00 void paletteInit() @@ -55,7 +57,7 @@ void paletteInit() // NOTE: Collapsed. // // 0x493AD0 -void _palette_reset_() +static void _palette_reset_() { } diff --git a/src/palette.h b/src/palette.h index fb4c31f..6052cdc 100644 --- a/src/palette.h +++ b/src/palette.h @@ -1,13 +1,10 @@ #ifndef PALETTE_H #define PALETTE_H -extern unsigned char gPalette[256 * 3]; extern unsigned char gPaletteWhite[256 * 3]; extern unsigned char gPaletteBlack[256 * 3]; -extern int gPaletteFadeSteps; void paletteInit(); -void _palette_reset_(); void paletteReset(); void paletteExit(); void paletteFadeTo(unsigned char* palette);