[maemo-commits] [maemo-commits] r18524 - in projects/haf/trunk/clutter0.8: clutter debian

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu May 28 16:29:46 EEST 2009
Author: kihamala
Date: 2009-05-28 16:29:43 +0300 (Thu, 28 May 2009)
New Revision: 18524

Modified:
   projects/haf/trunk/clutter0.8/clutter/clutter-stage.c
   projects/haf/trunk/clutter0.8/clutter/clutter-stage.h
   projects/haf/trunk/clutter0.8/debian/changelog
Log:
added clutter_stage_set_shaped_mode


Modified: projects/haf/trunk/clutter0.8/clutter/clutter-stage.c
===================================================================
--- projects/haf/trunk/clutter0.8/clutter/clutter-stage.c	2009-05-28 10:08:46 UTC (rev 18523)
+++ projects/haf/trunk/clutter0.8/clutter/clutter-stage.c	2009-05-28 13:29:43 UTC (rev 18524)
@@ -123,6 +123,8 @@
    * so we must update both */
   ClutterGeometry     last_damaged_area;
 
+  int                 shaped_mode;
+
   guint is_fullscreen     : 1;
   guint is_offscreen      : 1;
   guint is_cursor_visible : 1;
@@ -240,6 +242,16 @@
     }
 }
 
+/* 0 - no shape
+ * 1 - shape (fullscreen, i.e. all Clutter drawing is clipped)
+ */
+void
+clutter_stage_set_shaped_mode (ClutterActor *self, int mode)
+{
+  ClutterStagePrivate *priv = CLUTTER_STAGE (self)->priv;
+  priv->shaped_mode = mode;
+}
+
 static void
 clutter_stage_paint (ClutterActor *self)
 {
@@ -250,6 +262,9 @@
 
   CLUTTER_SET_PRIVATE_FLAGS (self, CLUTTER_ACTOR_IN_PAINT);
 
+  if (priv->shaped_mode)
+    return;
+
   CLUTTER_NOTE (PAINT, "Initializing stage paint");
 
   last_damage = priv->last_damaged_area;

Modified: projects/haf/trunk/clutter0.8/clutter/clutter-stage.h
===================================================================
--- projects/haf/trunk/clutter0.8/clutter/clutter-stage.h	2009-05-28 10:08:46 UTC (rev 18523)
+++ projects/haf/trunk/clutter0.8/clutter/clutter-stage.h	2009-05-28 13:29:43 UTC (rev 18524)
@@ -235,6 +235,7 @@
 
 void                  clutter_stage_set_damaged_area   (ClutterActor *self,
                                                         ClutterGeometry area);
+void clutter_stage_set_shaped_mode (ClutterActor *self, int mode);
 
 /* Commodity macro */
 #define clutter_stage_add(stage,actor)                  G_STMT_START {  \

Modified: projects/haf/trunk/clutter0.8/debian/changelog
===================================================================
--- projects/haf/trunk/clutter0.8/debian/changelog	2009-05-28 10:08:46 UTC (rev 18523)
+++ projects/haf/trunk/clutter0.8/debian/changelog	2009-05-28 13:29:43 UTC (rev 18524)
@@ -13,6 +13,9 @@
     g_return_if_fail, as we don't want these runtime checks, and 
     cogl_is_texture is *very* slow (linear search)
 
+  * clutter/clutter-stage.[ch]: Added clutter_stage_set_shaped_mode for
+    non-composited mode.
+
  -- Gordon Williams <gordon.williams at collabora.co.uk>  Wed, 27 May 2009 13:26:16 +0300
 
 clutter (0.8.2-0maemo32) unstable; urgency=low


More information about the maemo-commits mailing list