mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-05-01 10:29:28 +02:00
backgroundAlpha attribute is scale changed from a 0.0 to 10 (previously was hex 0-FF).
This commit is contained in:
@@ -765,11 +765,7 @@ void PageBuilder::BuildViewInfo(xml_node<> *componentXml, ViewInfo *info, xml_no
|
|||||||
|
|
||||||
if(backgroundAlpha)
|
if(backgroundAlpha)
|
||||||
{
|
{
|
||||||
std::stringstream ss(backgroundAlpha->value());
|
info->SetBackgroundAlpha( alpha ? Utils::ConvertFloat(backgroundAlpha->value()) : 1);
|
||||||
int num;
|
|
||||||
ss >> std::hex >> num;
|
|
||||||
|
|
||||||
info->SetBackgroundAlpha(static_cast<float>(num)/255);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user