{
returnValue = ILM_SUCCESS;
}
+ else
+ {
+ pScreenProperties->layerCount = 0;
+ pScreenProperties->harwareLayerCount = 0;
+ pScreenProperties->layerIds = NULL;
+ pScreenProperties->screenWidth = 0;
+ pScreenProperties->screenHeight = 0;
+ }
+
gIpcModule.destroyMessage(response);
gIpcModule.destroyMessage(command);
return returnValue;
cout << prefix << "---------------------------------------\n";
ilmScreenProperties screenProperties;
- ilm_getPropertiesOfScreen(screenid, &screenProperties);
- cout << prefix << "- resolution: x=" << screenProperties.screenWidth << ", y="
- << screenProperties.screenHeight << "\n";
+ if (ilm_getPropertiesOfScreen(screenid, &screenProperties) == ILM_SUCCESS)
+ {
+ cout << prefix << "- resolution: x=" << screenProperties.screenWidth << ", y="
+ << screenProperties.screenHeight << "\n";
- cout << prefix << "- hardware layer count: " << screenProperties.harwareLayerCount << "\n";
+ cout << prefix << "- hardware layer count: " << screenProperties.harwareLayerCount << "\n";
- cout << prefix << "- layer render order: ";
+ cout << prefix << "- layer render order: ";
- for (t_ilm_uint layerIndex = 0; layerIndex < screenProperties.layerCount; ++layerIndex)
+ for (t_ilm_uint layerIndex = 0; layerIndex < screenProperties.layerCount; ++layerIndex)
+ {
+ t_ilm_layer layerid = screenProperties.layerIds[layerIndex];
+ cout << layerid << "(0x" << hex << layerid << dec << "), ";
+ }
+ cout << "\n";
+ }
+ else
{
- t_ilm_layer layerid = screenProperties.layerIds[layerIndex];
- cout << layerid << "(0x" << hex << layerid << dec << "), ";
+ cout << "No screen with ID :" << screenid;
+ cout << "\n";
}
- cout << "\n";
}
void printLayerProperties(unsigned int layerid, const char* prefix)