From 3b2934c479ed3e23a01e6753bc7788012e3440df Mon Sep 17 00:00:00 2001 From: Richard Wheeler <2762690+zephyris@users.noreply.github.com> Date: Tue, 27 Jun 2023 15:47:42 +0100 Subject: [PATCH] Change: Make terraforming point selection sprite visible at >2x zoom out (#11017) --- src/smallmap_gui.cpp | 2 +- src/table/sprites.h | 2 +- src/viewport.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index c98fee110a..3917cb6057 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1800,7 +1800,7 @@ static const NWidgetPart _nested_smallmap_bar[] = { NWidget(WWT_PUSHIMGBTN, COLOUR_BROWN, WID_SM_CENTERMAP), SetDataTip(SPR_IMG_SMALLMAP, STR_SMALLMAP_CENTER), SetFill(1, 1), NWidget(WWT_IMGBTN, COLOUR_BROWN, WID_SM_BLANK), - SetDataTip(SPR_DOT_SMALL, STR_NULL), SetFill(1, 1), + SetDataTip(SPR_EMPTY, STR_NULL), SetFill(1, 1), NWidget(WWT_IMGBTN, COLOUR_BROWN, WID_SM_CONTOUR), SetDataTip(SPR_IMG_SHOW_COUNTOURS, STR_SMALLMAP_TOOLTIP_SHOW_LAND_CONTOURS_ON_MAP), SetFill(1, 1), NWidget(WWT_IMGBTN, COLOUR_BROWN, WID_SM_VEHICLES), diff --git a/src/table/sprites.h b/src/table/sprites.h index 907d37fdcc..504db6e446 100644 --- a/src/table/sprites.h +++ b/src/table/sprites.h @@ -42,7 +42,7 @@ static const SpriteID SPR_SELECT_TILE = 752; static const SpriteID SPR_DOT = 774; // corner marker for lower/raise land -static const SpriteID SPR_DOT_SMALL = 4078; +static const SpriteID SPR_EMPTY = 4078; // empty (transparent blue) sprite static const SpriteID SPR_WHITE_POINT = 4079; /* ASCII */ diff --git a/src/viewport.cpp b/src/viewport.cpp index b7bea78832..2165d15fcf 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1126,7 +1126,7 @@ draw_inner: if (IsSteepSlope(ti->tileh)) z -= TILE_HEIGHT; } } - DrawSelectionSprite(_cur_dpi->zoom <= ZOOM_LVL_DETAIL ? SPR_DOT : SPR_DOT_SMALL, PAL_NONE, ti, z, foundation_part); + DrawSelectionSprite(SPR_DOT, PAL_NONE, ti, z, foundation_part); } else if (_thd.drawstyle & HT_RAIL) { /* autorail highlight piece under cursor */ HighLightStyle type = _thd.drawstyle & HT_DIR_MASK;