BC_ThemeSet *existing_image_set = title[0] ? get_image_set_object(title) : 0;
if( existing_image_set ) {
image_sets.remove_object(existing_image_set);
+ last_image_set = 0;
+ last_image_data = 0;
}
BC_ThemeSet *result = new BC_ThemeSet(total, 0, title);
unsigned char* BC_Theme::get_image_data(const char *name, int log_errs)
{
// Image is the same as the last one
- if( last_image_data && !strcasecmp(last_image_data->name, name) )
+ if( last_image_data && !strcmp(last_image_data->name, name) )
return last_image_data->data;
// look forwards thru data sets for name
while( r-l > 1 ) {
m = (l + r) / 2;
BC_ImageData *image_data = images[m];
- if( !(v=strcasecmp(name, image_data->name)) ) {
+ if( !(v=strcmp(name, image_data->name)) ) {
image_data->used = 1;
last_image_data = image_data;
return image_data->data;