backgroundAlpha attribute is scale changed from a 0.0 to 10 (previously was hex 0-FF).

This commit is contained in:
emb 2015-01-11 13:21:27 -06:00
parent 1131749e5d
commit a101f851e9

View File

@ -765,11 +765,7 @@ void PageBuilder::BuildViewInfo(xml_node<> *componentXml, ViewInfo *info, xml_no
if(backgroundAlpha)
{
std::stringstream ss(backgroundAlpha->value());
int num;
ss >> std::hex >> num;
info->SetBackgroundAlpha(static_cast<float>(num)/255);
info->SetBackgroundAlpha( alpha ? Utils::ConvertFloat(backgroundAlpha->value()) : 1);
}
}