summaryrefslogtreecommitdiff
path: root/src/netlem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/netlem.c')
-rw-r--r--src/netlem.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/netlem.c b/src/netlem.c
index 8b6b3da..a6d6c38 100644
--- a/src/netlem.c
+++ b/src/netlem.c
@@ -514,12 +514,13 @@ int updateGraphics(gameObjectsState_t *objStates, localParams_t *params, gameGra
case eMultiGame:
// If we had a camera movement, we have to refesh all the screen
tmpSurf=gGraph->surfaces.tmpSurf;
+ SDL_FillRect(tmpSurf, &(tmpSurf->clip_rect), 0xcccccccc);
if ( lastViewport.x != gGraph->viewport.x ) {
lastViewport.x=gGraph->viewport.x;
dstRect.x=0;
dstRect.y=0;
- dstRect.w=0;
- dstRect.h=0;
+ // dstRect.w=0;
+ // dstRect.h=0;
srcRect.x=lastViewport.x;
srcRect.y=lastViewport.y;
srcRect.w=gGraph->screen->clip_rect.w;
@@ -528,6 +529,7 @@ int updateGraphics(gameObjectsState_t *objStates, localParams_t *params, gameGra
if ( res != 0 ) {
logs(LOG_WARN, "updateGraphics(), repaint() failed");
}
+ refresh(tmpSurf, &srcRect, gGraph->screen, dstRect);
} else {
// We use a dirty rectangle method for performance
for(i=0; i<objStates->objCount; i++) {