From 710c78a0bb953ebf8692a4fc936a03b4d1d9e13b Mon Sep 17 00:00:00 2001 From: J <62932591+alkyl-twists@users.noreply.github.com> Date: Mon, 5 Jan 2026 19:12:31 +0000 Subject: [PATCH] Add: Make smallmap clear to water instead of black if infinite water enabled. (#15041) --- src/smallmap_gui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 6013de6a78..3253677816 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1059,8 +1059,9 @@ protected: Blitter *blitter = BlitterFactory::GetCurrentBlitter(); AutoRestoreBackup dpi_backup(_cur_dpi, dpi); - /* Clear it */ - GfxFillRect(dpi->left, dpi->top, dpi->left + dpi->width - 1, dpi->top + dpi->height - 1, PC_BLACK); + /* If freeform edges are off, draw infinite water off the edges of the map. */ + const PixelColour map_clear_color = (_settings_game.construction.freeform_edges ? PC_BLACK : PC_WATER); + GfxFillRect(dpi->left, dpi->top, dpi->left + dpi->width - 1, dpi->top + dpi->height - 1, map_clear_color); /* Which tile is displayed at (dpi->left, dpi->top)? */ int dx;