babl r279 - in trunk: . babl
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: babl r279 - in trunk: . babl
- Date: Tue, 19 Feb 2008 12:50:08 +0000 (GMT)
Author: ok
Date: Tue Feb 19 12:50:08 2008
New Revision: 279
URL: http://svn.gnome.org/viewvc/babl?rev=279&view=rev
Log:
* babl/babl-fish-path.c: (test_create): make the testbuffer contain
values in the range -0.25 .. 1.75 instead of 0.0 .. 1.0, might fix
issues with wrong clamping of float->8bit conversions.
Modified:
trunk/ChangeLog
trunk/babl/babl-fish-path.c
Modified: trunk/babl/babl-fish-path.c
==============================================================================
--- trunk/babl/babl-fish-path.c (original)
+++ trunk/babl/babl-fish-path.c Tue Feb 19 12:50:08 2008
@@ -437,7 +437,7 @@
test = babl_malloc (sizeof (double) * test_pixels * 4);
for (i = 0; i < test_pixels * 4; i++)
- test [i] = (double) random () / RAND_MAX;
+ test [i] = ((double) random () / RAND_MAX) * 2 - 0.25;
return test;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]