added checking availability of level specific colors in level editor
[rocksndiamonds.git] / src / game_bd / bd_graphics.c
index 96e9b20c2fb277d542de9386d9082ee736ee440a..9060aae3247d1fcfa8145c83b6fa38b31ad1cd0e 100644 (file)
@@ -363,6 +363,11 @@ static boolean surface_has_c64_colors(SDL_Surface *surface)
   return has_c64_colors;
 }
 
+boolean gd_bitmap_has_c64_colors(Bitmap *bitmap)
+{
+  return surface_has_c64_colors(bitmap->surface);
+}
+
 // sets one of the colors in the indexed palette of an sdl surface to a GdColor.
 static void set_surface_palette_color(SDL_Surface *surface, int index, GdColor col)
 {