diff options
author | michi_cc <michi_cc@openttd.org> | 2017-12-09 19:21:41 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2017-12-09 19:21:41 +0000 |
commit | e856e3cca8831be0853a838ccc4f8a1e1decda07 (patch) | |
tree | 05c86ec677e865878f1884435aa2f4ca9bf873ea /src | |
parent | f2a22573d5811fb71dc81dadf9a34d00f15ece10 (diff) | |
download | openttd-e856e3cca8831be0853a838ccc4f8a1e1decda07.tar.xz |
(svn r27934) -Fix (r27900): Warning about unsigned unary minus.
Diffstat (limited to 'src')
-rw-r--r-- | src/window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp index 2ce1124ed..f4b7a1ca1 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1682,7 +1682,7 @@ static Point GetAutoPlacePosition(int width, int height) * of the closebox */ int left = rtl ? _screen.width - width : 0, top = toolbar_y; - int offset_x = rtl ? -NWidgetLeaf::closebox_dimension.width : NWidgetLeaf::closebox_dimension.width; + int offset_x = rtl ? -(int)NWidgetLeaf::closebox_dimension.width : (int)NWidgetLeaf::closebox_dimension.width; int offset_y = max<int>(NWidgetLeaf::closebox_dimension.height, FONT_HEIGHT_NORMAL + WD_CAPTIONTEXT_TOP + WD_CAPTIONTEXT_BOTTOM); restart: |