diff options
author | rubidium <rubidium@openttd.org> | 2010-12-13 15:09:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-13 15:09:59 +0000 |
commit | 959308a24331730282b5a67b1daf1f6149c900fb (patch) | |
tree | b3f2f390c344aa9084dc1f1be428c049c51ddb79 /src/tilehighlight_type.h | |
parent | 2e9108afe9d16e74b7730691d204316dafcbfc30 (diff) | |
download | openttd-959308a24331730282b5a67b1daf1f6149c900fb.tar.xz |
(svn r21497) -Codechange: prepare the viewport selection mechanism for selecting diagonally
Diffstat (limited to 'src/tilehighlight_type.h')
-rw-r--r-- | src/tilehighlight_type.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tilehighlight_type.h b/src/tilehighlight_type.h index c7511c42d..6e9e9b6a3 100644 --- a/src/tilehighlight_type.h +++ b/src/tilehighlight_type.h @@ -49,10 +49,12 @@ struct TileHighlightData { Point size; ///< Size, in tile "units", of the white/red selection area. Point offs; ///< Offset, in tile "units", for the blue coverage area from the selected area's northern tile. Point outersize; ///< Size, in tile "units", of the blue coverage area excluding the side of the selected area. + bool diagonal; ///< Whether the dragged area is a 45 degrees rotated rectangle. Point new_pos; ///< New value for \a pos; used to determine whether to redraw the selection. Point new_size; ///< New value for \a size; used to determine whether to redraw the selection. Point new_outersize; ///< New value for \a outersize; used to determine whether to redraw the selection. + bool new_diagonal; ///< New value for \a diagonal; used to determine whether to redraw the selection. byte dirty; ///< Whether the build station window needs to redraw due to the changed selection. Point selstart; ///< The location where the dragging started. |