+void InitElementSmallImages()
+{
+ struct PropertyMapping *property_mapping = getImageListPropertyMapping();
+ int num_property_mappings = getImageListPropertyMappingSize();
+ int i;
+
+ /* initialize normal images from static configuration */
+ for (i=0; element_to_graphic[i].element > -1; i++)
+ CreateImageWithSmallImages(element_to_graphic[i].graphic);
+
+ /* initialize special images from static configuration */
+ for (i=0; element_to_special_graphic[i].element > -1; i++)
+ CreateImageWithSmallImages(element_to_special_graphic[i].graphic);
+
+ /* !!! CHECK FOR ELEMENT-ONLY GRAPHICS !!! */
+ /* initialize images from dynamic configuration */
+ for (i=0; i < num_property_mappings; i++)
+ CreateImageWithSmallImages(property_mapping[i].artwork_index);
+}
+
+void InitFontGraphicInfo()
+{
+ static struct FontBitmapInfo font_bitmap_info[NUM_IMG_FONTS];
+ int num_fonts = NUM_IMG_FONTS;
+ int i;
+
+ if (graphic_info == NULL) /* still at startup phase */
+ num_fonts = NUM_INITIAL_FONTS;
+
+ for (i=0; i < num_fonts; i++)
+ {
+ if (i < NUM_INITIAL_FONTS)
+ font_bitmap_info[i] = font_initial[i];
+ else
+ {
+ /* copy font relevant information from graphics information */
+ font_bitmap_info[i].bitmap = graphic_info[FIRST_IMG_FONT + i].bitmap;
+ font_bitmap_info[i].src_x = graphic_info[FIRST_IMG_FONT + i].src_x;
+ font_bitmap_info[i].src_y = graphic_info[FIRST_IMG_FONT + i].src_y;
+ font_bitmap_info[i].width = graphic_info[FIRST_IMG_FONT + i].width;
+ font_bitmap_info[i].height = graphic_info[FIRST_IMG_FONT + i].height;
+ font_bitmap_info[i].draw_x = graphic_info[FIRST_IMG_FONT + i].draw_x;
+ font_bitmap_info[i].draw_y = graphic_info[FIRST_IMG_FONT + i].draw_y;
+ }
+ }
+
+ InitFontInfo(font_bitmap_info, num_fonts);
+}
+