[seed] Make clutter-cogl example work again.
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Make clutter-cogl example work again.
- Date: Tue, 28 Apr 2009 16:10:31 -0400 (EDT)
commit 99c1054062554e1a6cc66f3facff6699ff130e2a
Author: Robert Carr <racarr svn gnome org>
Date: Tue Apr 28 15:56:34 2009 -0400
Make clutter-cogl example work again.
Required updating the timeout_add call, which now is timeout_add_full in the gir, so requires a priority argument.
Also requires changing Clutter.cogl_double_to_fixed to Clutter.double_to_fixed
---
examples/clutter-cogl.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/clutter-cogl.js b/examples/clutter-cogl.js
index 53cfdc5..b8cf5c5 100755
--- a/examples/clutter-cogl.js
+++ b/examples/clutter-cogl.js
@@ -49,7 +49,7 @@ function destroy_actor(actor){
}
function circle_paint (actor){
- var radius = Clutter.cogl_double_to_fixed(actor.width/2);
+ var radius = Clutter.double_to_fixed(actor.width/2);
actor.fill_color.alpha = actor.opacity;
@@ -116,7 +116,7 @@ stage.show();
function random_ripple(){
ripple(stage, Math.random()*SCREEN_W, Math.random()*SCREEN_H);
- GLib.timeout_add(Math.random()*RIPPLE_MAXD+RIPPLE_MIND, random_ripple);
+ GLib.timeout_add(0, Math.random()*RIPPLE_MAXD+RIPPLE_MIND, random_ripple);
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]