Defining a HTML5 Canvas for the DGM

Error message

Deprecated function: Function create_function() is deprecated in GeSHi->_optimize_regexp_list_tokens_to_string() (line 4698 of /home/digipiph/public_html/sites/all/libraries/geshi/geshi.php).

Below is how to define a HTML5 canvas to the Digipiph Game Manager.

window.onload = function() {
 
  var gameCanvas = dgm.setupCanvas(document.getElementById("gameCanvas"));
 
};

With the canvas on the HTML page being:

<canvas id="gameCanvas" width="544" height="416"></canvas>