diff options
author | rubidium <rubidium@openttd.org> | 2007-09-09 10:13:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-09 10:13:17 +0000 |
commit | 0ca9fd7dc2ff8077c188e000b7569e3ff1072301 (patch) | |
tree | 43502b2af33d4a35c7e2e2fbd6f29b3cc60b4ba8 /src/viewport.cpp | |
parent | 10ea6cd13c576d2a339d1ac65c8c53d0abdb16be (diff) | |
download | openttd-0ca9fd7dc2ff8077c188e000b7569e3ff1072301.tar.xz |
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
Diffstat (limited to 'src/viewport.cpp')
-rw-r--r-- | src/viewport.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index 50297c1c5..f52c8b6ed 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1440,6 +1440,14 @@ void UpdateViewportPosition(Window *w) } } +/** + * Marks a viewport as dirty for repaint. + * + * @param vp The viewport to mark as dirty + * @todo documents the missing parameters @c left, @c top, @c right and @c bottom + * @todo detailed description missing + * @ingroup dirty + */ static void MarkViewportDirty(const ViewPort *vp, int left, int top, int right, int bottom) { right -= vp->virtual_left; @@ -1505,6 +1513,14 @@ void MarkTileDirty(int x, int y) ); } +/** + * Marks the selected tiles as dirty. + * + * This function marks the selected tiles as dirty for repaint + * + * @note Documentation may be wrong (Progman) + * @ingroup dirty + */ static void SetSelectionTilesDirty() { int y_size, x_size; |