git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Gmprat logarithms now O(1) not O(N)
[ipdf/code.git]
/
src
/
debugscript.cpp
diff --git
a/src/debugscript.cpp
b/src/debugscript.cpp
index
9bb5ea6
..
3d13245
100644
(file)
--- a/
src/debugscript.cpp
+++ b/
src/debugscript.cpp
@@
-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