From 30004ef2c4a9991a9b15d5ddc0604f33c426d5f2 Mon Sep 17 00:00:00 2001 From: Sergii Pylypenko Date: Fri, 8 Apr 2016 21:06:40 +0300 Subject: [PATCH] Show smallmap legend by default --- src/smallmap_gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index f481e8a3da..8e83c07461 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1049,7 +1049,7 @@ void SmallMapWindow::SetupWidgetData() SmallMapWindow::SmallMapWindow(WindowDesc *desc, int window_number) : Window(desc), - show_legend(false), + show_legend(true), row_height(max(GetMinSizing(NWST_STEP, FONT_HEIGHT_SMALL) * 2 / 3, uint(FONT_HEIGHT_SMALL))), // Default spacing makes legend too tall - shrink it by 1/3 refresh(FORCE_REFRESH_PERIOD) { @@ -1063,6 +1063,7 @@ SmallMapWindow::SmallMapWindow(WindowDesc *desc, int window_number) : //this->SetWidgetLoweredState(WID_SM_SHOW_HEIGHT, _smallmap_show_heightmap); this->SetWidgetLoweredState(WID_SM_TOGGLETOWNNAME, this->show_towns); + this->SetWidgetLoweredState(WID_SM_SHOW_LEGEND, this->show_legend); this->SetupWidgetData();