changeset 5973:477537d12882 draft

(svn r8662) -Fix r8661: don't try to put negative values in unsigned vars
author bjarni <bjarni@openttd.org>
date Sat, 10 Feb 2007 14:22:11 +0000
parents 6ece78140826
children a451868c6a26
files src/window.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.h
+++ b/src/window.h
@@ -73,7 +73,7 @@
 	byte type;                        ///< Widget type, see @WindowWidgetTypes
 	byte display_flags;               ///< Resize direction, alignment, etc. during resizing, see @ResizeFlags
 	byte color;                       ///< Widget colour, see docs/ottd-colourtext-palette.png
-	uint16 left, right, top, bottom;  ///< The position offsets inside the window
+	int16 left, right, top, bottom;   ///< The position offsets inside the window
 	uint16 data;                      ///< The String/Image or special code (list-matrixes) of a widget
 	StringID tooltips;                ///< Tooltips that are shown when rightclicking on a widget
 } Widget;