summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@nokia.com>2010-09-03 12:20:31 +0200
committerJens Bache-Wiig <jens.bache-wiig@nokia.com>2010-09-03 12:20:31 +0200
commit344bd8b50db541725e778122621f8c22a0e55995 (patch)
tree33565d9e2e74ba45de25d3c5453d9a26ebab29c0
parentfa7106a72b082d5e5c18ef2e9cbefe0a63789567 (diff)
fix blob paint
-rw-r--r--examples/blob/blob.qml1
-rw-r--r--examples/blob/blobsallad.js3
-rw-r--r--examples/simple/simple.qml3
3 files changed, 2 insertions, 5 deletions
diff --git a/examples/blob/blob.qml b/examples/blob/blob.qml
index 4ab27a5..53752c1 100644
--- a/examples/blob/blob.qml
+++ b/examples/blob/blob.qml
@@ -16,6 +16,7 @@ Canvas {
triggeredOnStart: true;
onTriggered: {
var ctx = getContext();
+ ctx.clearRect(0, 0, width, height);
Blob.update();
Blob.draw(ctx);
}
diff --git a/examples/blob/blobsallad.js b/examples/blob/blobsallad.js
index cc1457d..2914ef5 100644
--- a/examples/blob/blobsallad.js
+++ b/examples/blob/blobsallad.js
@@ -1086,9 +1086,8 @@ function update()
blobColl.setForce(gravity);
}
-function draw(ctx)
+function draw(ctx, w, h)
{
- ctx.clearRect(0, 0, width, height);
blobColl.draw(ctx, scaleFactor);
}
diff --git a/examples/simple/simple.qml b/examples/simple/simple.qml
index c289ab0..ab8a04e 100644
--- a/examples/simple/simple.qml
+++ b/examples/simple/simple.qml
@@ -1,7 +1,6 @@
import Qt 4.7
import "../../Canvas"
-
Grid {
columns:2
spacing:0
@@ -10,5 +9,3 @@ Grid {
Spiro {color:"#dd2277"}
Spiro {color:"#cccc77"}
}
-
-