diff options
author | Einar Johan Trøan Sømåen | 2012-08-31 19:42:53 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-08-31 20:00:41 +0200 |
commit | 158a2060868eceff254460a89b67d78dc650bc94 (patch) | |
tree | 5ac88101000dfcadf05d65fc99a8facd462c80d6 /engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | |
parent | 8cf7d765c05bd13fc381e94801b2bbd8c27e1c07 (diff) | |
download | scummvm-rg350-158a2060868eceff254460a89b67d78dc650bc94.tar.gz scummvm-rg350-158a2060868eceff254460a89b67d78dc650bc94.tar.bz2 scummvm-rg350-158a2060868eceff254460a89b67d78dc650bc94.zip |
WINTERMUTE: Use ++it instead of it++
Diffstat (limited to 'engines/wintermute/base/gfx/osystem/base_render_osystem.cpp')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp index 05520ee7a9..7a862e4441 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp @@ -210,7 +210,7 @@ bool BaseRenderOSystem::flip() { delete ticket;
} else {
(*it)->_wantsDraw = false;
- it++;
+ ++it;
}
}
}
@@ -316,7 +316,7 @@ void BaseRenderOSystem::drawSurface(BaseSurfaceOSystem *owner, const Graphics::S RenderTicket compare(owner, NULL, srcRect, dstRect, mirrorX, mirrorY, disableAlpha);
compare._colorMod = _colorMod;
RenderQueueIterator it;
- for (it = _renderQueue.begin(); it != _renderQueue.end(); it++) {
+ for (it = _renderQueue.begin(); it != _renderQueue.end(); ++it) {
if ((*it)->_owner == owner && *(*it) == compare && (*it)->_isValid) {
(*it)->_colorMod = _colorMod;
if (_disableDirtyRects) {
@@ -347,7 +347,7 @@ void BaseRenderOSystem::invalidateTicket(RenderTicket *renderTicket) { void BaseRenderOSystem::invalidateTicketsFromSurface(BaseSurfaceOSystem *surf) {
RenderQueueIterator it;
- for (it = _renderQueue.begin(); it != _renderQueue.end(); it++) {
+ for (it = _renderQueue.begin(); it != _renderQueue.end(); ++it) {
if ((*it)->_owner == surf) {
invalidateTicket(*it);
}
@@ -375,7 +375,7 @@ void BaseRenderOSystem::drawFromTicket(RenderTicket *renderTicket) { Common::List<RenderTicket *>::iterator it;
renderTicket->_drawNum = _drawNum++;
// Increment the following tickets, so they still are in line
- for (it = pos; it != _renderQueue.end(); it++) {
+ for (it = pos; it != _renderQueue.end(); ++it) {
(*it)->_drawNum++;
(*it)->_wantsDraw = false;
}
@@ -393,12 +393,12 @@ void BaseRenderOSystem::drawFromTicket(RenderTicket *renderTicket) { it = _renderQueue.erase(it);
break;
} else {
- it++;
+ ++it;
}
}
if (it != _renderQueue.end()) {
// Decreement the following tickets.
- for (; it != _renderQueue.end(); it++) {
+ for (; it != _renderQueue.end(); ++it) {
(*it)->_drawNum--;
}
}
@@ -431,7 +431,7 @@ void BaseRenderOSystem::drawTickets() { decrement++;
} else {
(*it)->_drawNum -= decrement;
- it++;
+ ++it;
}
}
if (!_dirtyRect || _dirtyRect->width() == 0 || _dirtyRect->height() == 0) {
@@ -444,7 +444,7 @@ void BaseRenderOSystem::drawTickets() { // Apply the clear-color to the dirty rect.
_renderSurface->fillRect(*_dirtyRect, _clearColor);
_drawNum = 1;
- for (it = _renderQueue.begin(); it != _renderQueue.end(); it++) {
+ for (it = _renderQueue.begin(); it != _renderQueue.end(); ++it) {
RenderTicket *ticket = *it;
assert(ticket->_drawNum == _drawNum++);
if (ticket->_isValid && ticket->_dstRect.intersects(*_dirtyRect)) {
|