diff --git a/docs/changelog.txt b/docs/changelog.txt index 286d043b3..1192fb03d 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -47,6 +47,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: - Gui focus strings will no longer get the "dfhack/" prefix if the string "dfhack/" already exists in the focus string ## Lua +- ``dfhack.screen.paintTile()``: you can now explicitly clear the interface cursor from a map tile by passing ``0`` as the tile value - ``widgets.Label``: token ``tile`` properties can now be functions that return a value -@ ``gui.INTERIOR_FRAME``: a panel frame style for use in highlighting off interior areas of a UI diff --git a/library/modules/Screen.cpp b/library/modules/Screen.cpp index ca0876904..dcb18dd91 100644 --- a/library/modules/Screen.cpp +++ b/library/modules/Screen.cpp @@ -130,8 +130,7 @@ static bool doSetTile_map(const Pen &pen, int x, int y) { long texpos = pen.tile; if (!texpos && pen.ch) texpos = init->font.large_font_texpos[(uint8_t)pen.ch]; - if (texpos) - vp->screentexpos_interface[index] = texpos; + vp->screentexpos_interface[index] = texpos; return true; }