diff --git a/rsrc/dialogs/help-debug.xml b/rsrc/dialogs/help-debug.xml
index 4c65f5de..5fe79904 100644
--- a/rsrc/dialogs/help-debug.xml
+++ b/rsrc/dialogs/help-debug.xml
@@ -44,5 +44,6 @@
+
diff --git a/src/dialogxml/keycodes.cpp b/src/dialogxml/keycodes.cpp
index 6090853d..2cc572d4 100644
--- a/src/dialogxml/keycodes.cpp
+++ b/src/dialogxml/keycodes.cpp
@@ -46,6 +46,8 @@ cKey charToKey(char ch) {
switch(ch){
case '=': case '/':
return {false, w(ch)};
+ case '+':
+ return {false, w('='), mod_shift};
case '<':
return {false, w(','), mod_shift};
case '>':
diff --git a/src/game/boe.actions.cpp b/src/game/boe.actions.cpp
index 9ea85b73..75a256c9 100644
--- a/src/game/boe.actions.cpp
+++ b/src/game/boe.actions.cpp
@@ -47,6 +47,7 @@
#include
#include
#include
+#include "fileio/resmgr/res_font.hpp"
rectangle item_screen_button_rects[9] = {
{125,10,141,28},{125,40,141,58},{125,68,141,86},{125,98,141,116},{125,126,141,144},{125,156,141,174},
@@ -2596,7 +2597,7 @@ void debug_launch_scen(std::string scen_name) {
}
// Non-comprehensive list of unused keys:
-// chjklnoqvy +[]{},.'"`|;:
+// chjklnoqvy []{},.'"`|;:
// We want to keep lower-case for normal gameplay.
void init_debug_actions() {
// optional `true` argument means you can use this action in the startup menu.
@@ -2650,6 +2651,7 @@ void init_debug_actions() {
add_debug_action({'/', '?'}, "Bring up this window", show_debug_help, true);
add_debug_action({'Z'}, "Save the current action log for bug reporting", save_replay_log, true);
add_debug_action({'\\'}, "Crash the game", debug_crash, true);
+ add_debug_action({'+'}, "Fix font corruption", debug_fix_fonts, true);
}
// Later we might want to know whether the key is used or not
@@ -4260,6 +4262,14 @@ void debug_crash() {
}
}
+void debug_fix_fonts() {
+ extern std::map> store_scale_aware_text;
+ store_scale_aware_text.clear();
+
+ ResMgr::fonts.drain();
+ redraw_everything();
+}
+
void clear_trapped_monst() {
if(recording){
record_action("clear_trapped_monst", "");
diff --git a/src/game/boe.actions.hpp b/src/game/boe.actions.hpp
index 41d7f600..7748b1ab 100644
--- a/src/game/boe.actions.hpp
+++ b/src/game/boe.actions.hpp
@@ -129,6 +129,7 @@ void preview_dialog_xml();
void preview_every_dialog_xml();
void save_replay_log();
void debug_crash();
+void debug_fix_fonts();
void clear_trapped_monst();
#endif