[maemo-commits] [maemo-commits] r12136 - in projects/haf/trunk/hildon-desktop: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Jun 6 18:24:34 EEST 2007
Author: jobi
Date: 2007-06-06 18:24:33 +0300 (Wed, 06 Jun 2007)
New Revision: 12136

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/src/hn-app-pixbuf-anim-blinker.c
Log:

2007-06-06  Johan Bilien  <johan.bilien at nokia.com>

	* src/hd-pixbuf-anim-blinker.c:
	- protect against negative values for alpha.
	Fixes: NB#53501



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-06-06 15:18:30 UTC (rev 12135)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-06-06 15:24:33 UTC (rev 12136)
@@ -1,5 +1,11 @@
 2007-06-06  Johan Bilien  <johan.bilien at nokia.com>
 
+	* src/hd-pixbuf-anim-blinker.c:
+	- protect against negative values for alpha.
+	Fixes: NB#53501
+
+2007-06-06  Johan Bilien  <johan.bilien at nokia.com>
+
 	* src/hd-home-window.c:
 	- do not call the parent's style_set, which resets the background
 	to white

Modified: projects/haf/trunk/hildon-desktop/src/hn-app-pixbuf-anim-blinker.c
===================================================================
--- projects/haf/trunk/hildon-desktop/src/hn-app-pixbuf-anim-blinker.c	2007-06-06 15:18:30 UTC (rev 12135)
+++ projects/haf/trunk/hildon-desktop/src/hn-app-pixbuf-anim-blinker.c	2007-06-06 15:24:33 UTC (rev 12136)
@@ -315,6 +315,7 @@
 	/* Use period * 2 and 512 so that alpha pulses down as well as up */
 	alpha = MIN (((elapsed % (period*2)) * 511) / (period*2), 511);
 	if (alpha > 255) alpha = 511-alpha;
+        if (alpha < 0) alpha = 0;
 	gdk_pixbuf_composite (iter->hn_app_pixbuf_anim_blinker->pixbuf,
 		iter->hn_app_pixbuf_anim_blinker->blended,
 		0, 0,


More information about the maemo-commits mailing list