mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-31 03:55:46 +01:00
backgroundAlpha attribute is scale changed from a 0.0 to 10 (previously was hex 0-FF).
This commit is contained in:
parent
1131749e5d
commit
a101f851e9
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user