Пример #1
0
void client_config_static::parse(const config &cfg)
{
	gamma.red = cfg.get_number(L"/gdipp/client/paint/gamma/red/text()", gamma.red);
	gamma.green = cfg.get_number(L"/gdipp/client/paint/gamma/green/text()", gamma.green);
	gamma.blue = cfg.get_number(L"/gdipp/client/paint/gamma/blue/text()", gamma.blue);
	painter = static_cast<client_config::PAINTER_TYPE>(cfg.get_number(L"/gdipp/client/paint/painter/text()", static_cast<int>(painter)));
	pixel_geometry = static_cast<client_config::PIXEL_GEOMETRY_TYPE>(cfg.get_number(L"/gdipp/client/paint/pixel_geometry/text()", static_cast<int>(pixel_geometry)));
	shadow.offset_x = cfg.get_number(L"/gdipp/client/paint/shadow/offset_x/text()", shadow.offset_x);
	shadow.offset_y = cfg.get_number(L"/gdipp/client/paint/shadow/offset_y/text()", shadow.offset_y);
	shadow.alpha = cfg.get_number(L"/gdipp/client/paint/shadow/alpha/text()", static_cast<int>(shadow.alpha));
}