Skip to content

Commit 7a66f86

Browse files
committed
Merge pull request livecode#3559 from peter-b/js/bugfix-16795
[Bug 16795][emscripten] Correctly get drawing canvas from DOM element
2 parents d6d8046 + 603ae75 commit 7a66f86

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

docs/notes/bugfix-16795.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Use HTML5 Canvas API in standards-compliant way

engine/src/em-surface.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mergeInto(LibraryManager.library, {
2626
var canvas = Module['canvas'];
2727

2828
// Create and get a 2D rendering context for the canvas
29-
var context = canvas.getContext('2d', false);
29+
var context = canvas.getContext('2d');
3030
if (!context) {
3131
context = Browser.createContext(canvas, false, true);
3232
}

0 commit comments

Comments
 (0)