{
ilmErrorTypes returnValue = ILM_FAILED;
- t_ilm_message response = 0;
- t_ilm_message command = gIpcModule.createMessage("GetPropertiesOfScreen");
- if (pScreenProperties
- && command
- && gIpcModule.appendUint(command, screenID)
- && sendAndWaitForResponse(command, &response, RESPONSE_TIMEOUT_IN_MS, &returnValue)
- && gIpcModule.getUintArray(response, &pScreenProperties->layerIds, (int*)(&pScreenProperties->layerCount))
- && gIpcModule.getUint(response, &pScreenProperties->harwareLayerCount)
- && gIpcModule.getUint(response, &pScreenProperties->screenWidth)
- && gIpcModule.getUint(response, &pScreenProperties->screenHeight))
+ if (pScreenProperties)
{
- returnValue = ILM_SUCCESS;
- }
- else
- {
- pScreenProperties->layerCount = 0;
- pScreenProperties->harwareLayerCount = 0;
- pScreenProperties->layerIds = NULL;
- pScreenProperties->screenWidth = 0;
- pScreenProperties->screenHeight = 0;
- }
+ t_ilm_message response = 0;
+ t_ilm_message command = gIpcModule.createMessage("GetPropertiesOfScreen");
+ if (command
+ && gIpcModule.appendUint(command, screenID)
+ && sendAndWaitForResponse(command, &response, RESPONSE_TIMEOUT_IN_MS, &returnValue)
+ && gIpcModule.getUintArray(response, &pScreenProperties->layerIds, (int*)(&pScreenProperties->layerCount))
+ && gIpcModule.getUint(response, &pScreenProperties->harwareLayerCount)
+ && gIpcModule.getUint(response, &pScreenProperties->screenWidth)
+ && gIpcModule.getUint(response, &pScreenProperties->screenHeight))
+ {
+ 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);
+ gIpcModule.destroyMessage(response);
+ gIpcModule.destroyMessage(command);
+ }
return returnValue;
}
list<string> doneTypes;
list<StringMapTree*> waitingNodes;
waitingNodes.push_back(&grammarTree);
- while (waitingNodes.size() != 0)
+ while (!waitingNodes.empty())
{
//pop first element of the waiting types
StringMapTree* typeNode = *(waitingNodes.begin());
}
SurfaceList surfaces = m_currentLayer->getAllSurfaces();
- for (std::list<Surface*>::const_iterator currentS = surfaces.begin(); currentS != surfaces.end(); currentS++)
+ for (std::list<Surface*>::const_iterator currentS = surfaces.begin(); currentS != surfaces.end(); ++currentS)
{
if ((*currentS)->hasNativeContent() && (*currentS)->visibility && (*currentS)->opacity>0.0f)
{
bool blend = !clear;
- for (std::list<MultiSurfaceRegion*>::const_iterator region = regions.begin(); region != regions.end(); region++)
+ for (std::list<MultiSurfaceRegion*>::const_iterator region = regions.begin(); region != regions.end(); ++region)
{
renderRegion(*region, blend);
}
LayerList singleLayer;
singleLayer.push_back(*layer);
std::list<MultiSurfaceRegion*> regions = computeRegions(singleLayer, true); //do clear
- for (std::list<MultiSurfaceRegion*>::const_iterator region = regions.begin(); region != regions.end(); region++)
+ for (std::list<MultiSurfaceRegion*>::const_iterator region = regions.begin(); region != regions.end(); ++region)
{
renderRegion(*region, false); //don't blend
}
MultiSurfaceRegion *region = new MultiSurfaceRegion();
region->m_rect = FloatRectangle(x1, y1, x2-x1, y2-y1);
std::list<OrderedSurface>::iterator si;
- for (si = regionsurfaces.begin(); si != regionsurfaces.end(); si++)
+ for (si = regionsurfaces.begin(); si != regionsurfaces.end(); ++si)
{
if ((*si).surface)
{
}
// Add the new region to the list we return. Only create
// empty regions when 'clear' was requested
- if (clear || regionsurfaces.size() > 0)
+ if (clear || !regionsurfaces.empty())
{
regions.push_back(region);
}
// be able to render with the surfaces layered properly.
bool inserted = false;
std::list<OrderedSurface>::iterator si;
- for (si = regionsurfaces.begin(); si != regionsurfaces.end(); si++)
+ for (si = regionsurfaces.begin(); si != regionsurfaces.end(); ++si)
{
if ((*si).depth >= xlimits[x].orderedSurface.depth)
{
sprintf(floatStringBuffer, "Overall fps: %f", FPS);
timeSinceLastCalc = (float)(tv.tv_sec-tv0_forRender.tv_sec) + 0.000001*((float)(tv.tv_usec-tv0_forRender.tv_usec));
- for (std::list<Layer*>::const_iterator current = layers.begin(); current != layers.end(); current++)
+ for (std::list<Layer*>::const_iterator current = layers.begin(); current != layers.end(); ++current)
{
SurfaceList surfaceList = (*current)->getAllSurfaces();
SurfaceListIterator surfaceIter = surfaceList.begin();
}
#endif /* WL_OMIT_CLEAR_GB */
}
- for (std::list<Layer*>::const_iterator current = layers.begin(); current != layers.end(); current++)
+ for (std::list<Layer*>::const_iterator current = layers.begin(); current != layers.end(); ++current)
{
if ((*current)->getLayerType() == Hardware)
{
graphicSystem->clearBackground();
}
}
- for (std::list<Layer*>::const_iterator current = layers.begin(); current != layers.end(); current++)
+ for (std::list<Layer*>::const_iterator current = layers.begin(); current != layers.end(); ++current)
{
if ((*current)->getLayerType() == Hardware)
{
FPS = ((float)(Frame)) / timeSinceLastCalc;
char floatStringBuffer[256];
sprintf(floatStringBuffer, "Overall fps: %f", FPS);
- for (std::list<Layer*>::const_iterator current = layers.begin(); current != layers.end(); current++)
+ for (std::list<Layer*>::const_iterator current = layers.begin(); current != layers.end(); ++current)
{
SurfaceList surfaceList = (*current)->getAllSurfaces();
SurfaceListIterator surfaceIter = surfaceList.begin();
LayerList swLayers;
// Refresh HW Layers, find SW Layers
- for (LayerListConstIterator current = layers.begin(); current != layers.end(); current++)
+ for (LayerListConstIterator current = layers.begin(); current != layers.end(); ++current)
{
if ((*current)->getLayerType() == Hardware)
{