summaryrefslogtreecommitdiff
path: root/gdk/broadway/broadway.js
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-11-06 12:54:37 +0100
committerAlexander Larsson <alexl@redhat.com>2013-11-07 14:09:53 +0100
commit6e308dc7c7971dd039697a49248e04cd0848fab2 (patch)
tree2714a41434c36e8fb8711b423bcbb1036838e153 /gdk/broadway/broadway.js
parentb436f06a947d824606c2db02b6b51e7d212a2f28 (diff)
downloadgtk+-6e308dc7c7971dd039697a49248e04cd0848fab2.tar.gz
broadway: Simplify frame handling and make it ARGB32
This completely removes the delta compression and makes all buffers ARGB. This is obviously slower, but this will be re-integrated later.
Diffstat (limited to 'gdk/broadway/broadway.js')
-rw-r--r--gdk/broadway/broadway.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js
index 8619f618c2..97ef30963c 100644
--- a/gdk/broadway/broadway.js
+++ b/gdk/broadway/broadway.js
@@ -146,13 +146,12 @@ function flushSurface(surface)
var commands = surface.drawQueue;
surface.queue = [];
var context = surface.canvas.getContext("2d");
- context.globalCompositeOperation = "source-over";
+ context.globalCompositeOperation = "copy";
var i = 0;
for (i = 0; i < commands.length; i++) {
var cmd = commands[i];
switch (cmd.op) {
case 'i': // put image data surface
- context.globalCompositeOperation = "source-over";
context.drawImage(cmd.img, cmd.x, cmd.y);
break;