# HG changeset patch # User bjarni # Date 1171117331 0 # Node ID b371612e3dbfbc4f2adf64690c6553fc3976a685 # Parent 59953719a3ffd49164ca30bcdb461f6b4f420103 (svn r8662) -Fix r8661: don't try to put negative values in unsigned vars diff -r 59953719a3ff -r b371612e3dbf src/window.h --- a/src/window.h Sat Feb 10 13:37:32 2007 +0000 +++ b/src/window.h Sat Feb 10 14:22:11 2007 +0000 @@ -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;