mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-05-06 21:03:27 +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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user