summaryrefslogtreecommitdiff
path: root/src/tree_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tree_gui.cpp')
-rw-r--r--src/tree_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree_gui.cpp b/src/tree_gui.cpp
index ee94c35af..3dab92a20 100644
--- a/src/tree_gui.cpp
+++ b/src/tree_gui.cpp
@@ -65,8 +65,8 @@ static Dimension GetMaxTreeSpriteSize()
for (int i = base; i < base + count; i++) {
if (i >= (int)lengthof(tree_sprites)) return size;
this_size = GetSpriteSize(tree_sprites[i].sprite, &offset);
- size.width = max<int>(size.width, 2 * max<int>(this_size.width, -offset.x));
- size.height = max<int>(size.height, max<int>(this_size.height, -offset.y));
+ size.width = std::max<int>(size.width, 2 * std::max<int>(this_size.width, -offset.x));
+ size.height = std::max<int>(size.height, std::max<int>(this_size.height, -offset.y));
}
return size;