summaryrefslogtreecommitdiff
path: root/gdk/broadway/broadway.js
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-11-06 12:31:27 +0100
committerAlexander Larsson <alexl@redhat.com>2013-11-07 14:09:53 +0100
commitb436f06a947d824606c2db02b6b51e7d212a2f28 (patch)
tree1f1b5c85caddc094e7d39b74a19623d52866e97b /gdk/broadway/broadway.js
parentdd19c9fe815360d577d574e1fcd0bdcdfdd51c43 (diff)
downloadgtk+-b436f06a947d824606c2db02b6b51e7d212a2f28.tar.gz
broadway: Remove window translation code
This is no longer used as we neutered gdk_window_scroll & co.
Diffstat (limited to 'gdk/broadway/broadway.js')
-rw-r--r--gdk/broadway/broadway.js17
1 files changed, 0 insertions, 17 deletions
diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js
index 4610c54d0f..8619f618c2 100644
--- a/gdk/broadway/broadway.js
+++ b/gdk/broadway/broadway.js
@@ -156,23 +156,6 @@ function flushSurface(surface)
context.drawImage(cmd.img, cmd.x, cmd.y);
break;
- case 'b': // copy rects
- context.save();
- context.beginPath();
-
- for (var j = 0; j < cmd.rects.length; j++) {
- var rect = cmd.rects[j];
- context.rect(rect.x, rect.y, rect.w, rect.h);
- }
- context.clip();
- // This seems to break chrome when src overlaps dest
- // But source-over should be fine for rgb surfaces anyway
- //context.globalCompositeOperation = "copy";
- context.drawImage(surface.canvas,
- cmd.dx, cmd.dy);
- context.restore();
- break;
-
default:
alert("Unknown drawing op " + cmd.op);
}