@@ -543,17 +543,34 @@ static void drawAttributeImage(struct menu_list *menu, struct submenu_list *item
configGetStr (config, attributeImage->cache ->suffix , (const char **)&attributeImage->currentValue );
}
if (attributeImage->currentValue ) {
int posZ = 0 ;
GSTEXTURE *texture = cacheGetTexture (attributeImage->cache , menu->item ->userdata , &posZ, &attributeImage->currentUid , attributeImage->currentValue );
if (texture && texture->Mem ) {
if (attributeImage->overlayTexture ) {
rmDrawOverlayPixmap (&attributeImage->overlayTexture ->source , elem->posX , elem->posY , elem->aligned , elem->width , elem->height , elem->scaled , gDefaultCol ,
texture, attributeImage->overlayTexture ->upperLeft_x , attributeImage->overlayTexture ->upperLeft_y , attributeImage->overlayTexture ->upperRight_x , attributeImage->overlayTexture ->upperRight_y ,
attributeImage->overlayTexture ->lowerLeft_x , attributeImage->overlayTexture ->lowerLeft_y , attributeImage->overlayTexture ->lowerRight_x , attributeImage->overlayTexture ->lowerRight_y );
} else
if (thmGetGuiValue () == 0 ) {
int texId;
char *seppos = strchr (attributeImage->currentValue , ' /' );
if (!seppos)
texId = texLookupInternalTexId (attributeImage->currentValue );
else {
char imgName[32 ];
snprintf (imgName, sizeof (imgName), " %s _%s " , attributeImage->cache ->suffix , &seppos[1 ]);
texId = texLookupInternalTexId (&imgName[0 ]);
}
GSTEXTURE *texture = thmGetTexture (texId);
if (texture && texture->Mem )
rmDrawPixmap (texture, elem->posX , elem->posY , elem->aligned , elem->width , elem->height , elem->scaled , gDefaultCol );
return ;
} else {
int posZ = 0 ;
GSTEXTURE *texture = cacheGetTexture (attributeImage->cache , menu->item ->userdata , &posZ, &attributeImage->currentUid , attributeImage->currentValue );
if (texture && texture->Mem ) {
if (attributeImage->overlayTexture ) {
rmDrawOverlayPixmap (&attributeImage->overlayTexture ->source , elem->posX , elem->posY , elem->aligned , elem->width , elem->height , elem->scaled , gDefaultCol ,
texture, attributeImage->overlayTexture ->upperLeft_x , attributeImage->overlayTexture ->upperLeft_y , attributeImage->overlayTexture ->upperRight_x , attributeImage->overlayTexture ->upperRight_y ,
attributeImage->overlayTexture ->lowerLeft_x , attributeImage->overlayTexture ->lowerLeft_y , attributeImage->overlayTexture ->lowerRight_x , attributeImage->overlayTexture ->lowerRight_y );
} else
rmDrawPixmap (texture, elem->posX , elem->posY , elem->aligned , elem->width , elem->height , elem->scaled , gDefaultCol );
return ;
}
}
}
}