From 198713a2b15ea835de6bc0f889c260c62a376e42 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 04 Mar 2013 20:42:47 -0500 Subject: Add a sprite color to palettes. --- diff --git a/data/palettes/day.gpl b/data/palettes/day.gpl index b810163..49b7a86 100644 --- a/data/palettes/day.gpl +++ b/data/palettes/day.gpl @@ -59,3 +59,5 @@ Name: Day colors 144 180 85 Color 90b455 180 216 170 Color b4d8aa 216 252 170 Color d8fcaa + + 31 31 127 Demo sprite diff --git a/data/palettes/eve.gpl b/data/palettes/eve.gpl index 6819de0..19ea0f8 100644 --- a/data/palettes/eve.gpl +++ b/data/palettes/eve.gpl @@ -59,3 +59,5 @@ Name: Evening colors 126 112 53 Color 7e7035 157 135 106 Color 9d876a 189 157 106 Color bd9d6a + + 31 31 127 Demo sprite diff --git a/data/palettes/morn.gpl b/data/palettes/morn.gpl index dd55fd9..5111900 100644 --- a/data/palettes/morn.gpl +++ b/data/palettes/morn.gpl @@ -59,3 +59,5 @@ Name: Morning colors 144 157 53 Color 909d35 180 189 106 Color b4bd6a 216 220 106 Color d8dc6a + + 31 31 127 Demo sprite diff --git a/data/palettes/night.gpl b/data/palettes/night.gpl index 1c4cbf9..919984a 100644 --- a/data/palettes/night.gpl +++ b/data/palettes/night.gpl @@ -59,3 +59,5 @@ Name: Night colors 36 45 42 Color 242d2a 45 54 85 Color 2d3655 54 63 85 Color 363f55 + + 31 31 127 Demo sprite diff --git a/src/main.c b/src/main.c index 1dd376a..4320b72 100644 --- a/src/main.c +++ b/src/main.c @@ -90,8 +90,8 @@ main(void) SDL_Palette *pal_start, *pal_end; pal = malloc(sizeof(*pal)); - pal->colors = calloc(58, sizeof(*pal->colors)); - pal->ncolors = 58; + pal->colors = calloc(59, sizeof(*pal->colors)); + pal->ncolors = 59; i = 0; start = SDL_GetTicks(); -- cgit v0.9.1