mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-16 07:27:35 +00:00
parent
7d60b1f5e7
commit
eb443e751f
@ -53,11 +53,19 @@ struct Sculpt::Fb_config
|
||||
|
||||
static Entry from_manual_xml(Xml_node const &node)
|
||||
{
|
||||
auto mode_id = node.attribute_value("mode", Mode_id());
|
||||
auto mode_attr = Mode_attr::from_xml(node);
|
||||
|
||||
if (!node.attribute_value("enabled", true)) {
|
||||
mode_id = { };
|
||||
mode_attr = { };
|
||||
}
|
||||
|
||||
return { .defined = true,
|
||||
.present = false,
|
||||
.name = node.attribute_value("name", Name()),
|
||||
.mode_id = node.attribute_value("mode", Mode_id()),
|
||||
.mode_attr = Mode_attr::from_xml(node),
|
||||
.mode_id = mode_id,
|
||||
.mode_attr = mode_attr,
|
||||
.brightness = Brightness::from_xml(node) };
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user