1
0
Fork 0

don't rely on the existence of an "arg" pointer

This commit is contained in:
mfranz 2007-03-29 18:39:10 +00:00
parent f236a438b8
commit de80a63ae6

View file

@ -85,8 +85,8 @@ settimer(INIT, 1);
##
# Show/hide the fps display dialog.
#
fpsDisplay = func {
var w = size(arg) ? arg[0] : cmdarg().getBoolValue();
fpsDisplay = func(v = nil) {
var w = v != nil ? v : cmdarg().getBoolValue();
fgcommand(w ? "dialog-show" : "dialog-close", props.Node.new({"dialog-name": "fps"}));
}