From a14de11a13afcef8f970ecf72c95d66a7bb49666 Mon Sep 17 00:00:00 2001 From: Robob27 Date: Thu, 2 Feb 2023 02:08:23 -0500 Subject: [PATCH] Clean up artifacts during render --- plugins/confirm.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/confirm.cpp b/plugins/confirm.cpp index 4defc076f..7d375e77e 100644 --- a/plugins/confirm.cpp +++ b/plugins/confirm.cpp @@ -318,8 +318,6 @@ public: { if (paused_focus != "" && (input->count(df::interface_key::LEAVESCREEN) || mouseExit)) { conf_lua::api::unpause(NULL); - // testing - df::global::gps->force_full_display_count = 1; } return false; } @@ -374,8 +372,6 @@ public: df::global::enabler->mouse_rbut_down = 0; } set_state(INACTIVE); - // testing - df::global::gps->force_full_display_count = 1; } else if (input->count(df::interface_key::SELECT)) set_state(SELECTED); else if (input->count(df::interface_key::CUSTOM_P)) @@ -497,6 +493,8 @@ public: } set_state(INACTIVE); } + // clean up any artifacts + df::global::gps->force_full_display_count = 1; } virtual string get_id() override = 0; #define CONF_LUA_START using namespace conf_lua; Lua::StackUnwinder unwind(l_state); push(screen); push(get_id());