From d7b67e9528b1e5296ee959eb564304e6ab631af8 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Wed, 28 Dec 2022 16:27:44 -0800 Subject: [PATCH] remove cached USE_GRAPHICS from gui.lua it's no longer constant --- docs/dev/Lua API.rst | 5 ----- library/lua/gui.lua | 2 -- 2 files changed, 7 deletions(-) diff --git a/docs/dev/Lua API.rst b/docs/dev/Lua API.rst index 4b9e2e972..7c6e72f19 100644 --- a/docs/dev/Lua API.rst +++ b/docs/dev/Lua API.rst @@ -3640,11 +3640,6 @@ considered stable. Misc ---- -* ``USE_GRAPHICS`` - - Contains the value of ``dfhack.screen.inGraphicsMode()``, which cannot be - changed without restarting the game and thus is constant during the session. - * ``CLEAR_PEN`` The black pen used to clear the screen. diff --git a/library/lua/gui.lua b/library/lua/gui.lua index 709ff65f9..1eaa9861a 100644 --- a/library/lua/gui.lua +++ b/library/lua/gui.lua @@ -7,8 +7,6 @@ local utils = require('utils') local dscreen = dfhack.screen local getval = utils.getval -USE_GRAPHICS = dscreen.inGraphicsMode() - local to_pen = dfhack.pen.parse CLEAR_PEN = to_pen{tile=909, ch=32, fg=0, bg=0}