RGB Simulator::loadRGB(xmlNodePtr nodo)
{
- unsigned r,g,b;
+ unsigned long r,g,b;
while (nodo != NULL) {
if (nodo->type == XML_ELEMENT_NODE) {
if (xmlStrcmp(nodo->name, BAD_CAST"rojo")==0)
}
nodo = nodo->next;
}
+ r = static_cast<unsigned long>(255 * (r / 65535.0f));
+ g = static_cast<unsigned long>(255 * (g / 65535.0f));
+ b = static_cast<unsigned long>(255 * (b / 65535.0f));
+
return RGB(r,g,b);
}