Gmprat logarithms now O(1) not O(N)
[ipdf/code.git] / src / debugscript.cpp
index 9bb5ea6..3d13245 100644 (file)
@@ -113,6 +113,12 @@ void DebugScript::ParseAction()
        {
                currentAction.type = AT_RecordPerformance;
        }
+       else if (actionType == "debugfont")
+       {
+               currentAction.type = AT_DebugFont;
+               inp >> currentAction.textargs;
+       }
+
 }
 
 bool DebugScript::Execute(View *view, Screen *scr)
@@ -207,6 +213,10 @@ bool DebugScript::Execute(View *view, Screen *scr)
        case AT_RecordPerformance:
                PrintPerformance(view, scr);
                break;
+       case AT_DebugFont:
+               scr->ShowDebugFont(currentAction.textargs == "1" || currentAction.textargs == "on");
+               currentAction.loops = 1;
+               break;
        default:
                Fatal("Unknown script command in queue.");
        }

UCC git Repository :: git.ucc.asn.au