1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-25 07:29:10 +00:00

(svn r26538) -Codechange: remove double accounting of the drivers

This commit is contained in:
rubidium
2014-04-28 21:06:51 +00:00
parent 3b634b628c
commit b476086c39
24 changed files with 97 additions and 75 deletions

View File

@@ -169,7 +169,7 @@ void NetworkUndrawChatMessage()
/* Put our 'shot' back to the screen */
blitter->CopyFromBuffer(blitter->MoveTo(_screen.dst_ptr, x, y), _chatmessage_backup, width, height);
/* And make sure it is updated next time */
_video_driver->MakeDirty(x, y, width, height);
VideoDriver::GetInstance()->MakeDirty(x, y, width, height);
_chatmessage_dirty = true;
}
@@ -256,7 +256,7 @@ void NetworkDrawChatMessage()
}
/* Make sure the data is updated next flush */
_video_driver->MakeDirty(x, y, width, height);
VideoDriver::GetInstance()->MakeDirty(x, y, width, height);
_chatmessage_visible = true;
_chatmessage_dirty = false;