summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/platforms/webgl/webqt.jsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/platforms/webgl/webqt.jsx b/src/plugins/platforms/webgl/webqt.jsx
index 4c8f3a3..d2c5b0b 100644
--- a/src/plugins/platforms/webgl/webqt.jsx
+++ b/src/plugins/platforms/webgl/webqt.jsx
@@ -227,6 +227,7 @@ window.onload = function () {
};
canvas.onmousedown = function (event) {
+ /* jslint bitwise: true */
qtButtons |= mapButton(event.button);
sendMouseEvent(qtButtons, event.layerX, event.layerY, event.clientX, event.clientY,
name);
@@ -238,6 +239,7 @@ window.onload = function () {
};
canvas.onmouseup = function (event) {
+ /* jslint bitwise: true */
qtButtons &= ~mapButton(event.button);
sendMouseEvent(qtButtons, event.layerX, event.layerY, event.clientX, event.clientY,
name);
@@ -333,6 +335,7 @@ window.onload = function () {
var gl = getContext(canvas);
+ /* jslint bitwise: true */
gl.clear([ gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT | gl.STENCIL_BUFFER_BIT]);
windowData[name] = {
"canvas" : canvas,