Mercurial > octave-nkf
changeset 6931:ead14c505096
[project @ 2007-09-28 10:30:52 by dbateman]
author | dbateman |
---|---|
date | Fri, 28 Sep 2007 10:30:53 +0000 |
parents | 01841899e0f9 |
children | 8065a1bc0358 |
files | src/ChangeLog src/graphics.h.in |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Fri Sep 28 09:21:59 2007 +0000 +++ b/src/ChangeLog Fri Sep 28 10:30:53 2007 +0000 @@ -1,3 +1,8 @@ +2007-09-28 Kai Habel <kai.habel@gmx.de> + + * graphics.h.in (color_property::colormap_property (const Matrix&)): + Use floating point math in calculation of colormap. + 2007-09-26 David Bateman <dbateman@free.fr> * graphics.cc (color_values::str2rgb): accept upper, lower and
--- a/src/graphics.h.in Fri Sep 28 09:21:59 2007 +0000 +++ b/src/graphics.h.in Fri Sep 28 10:30:53 2007 +0000 @@ -322,7 +322,7 @@ else if (x >= 5.0/8.0 && x < 7.0/8.0) cmap(i,1) = -4.0 * x + 7.0/2.0; - if (x < 1/8) + if (x < 1.0/8.0) cmap(i,2) = 4.0 * x + 1.0/2.0; else if (x >= 1.0/8.0 && x < 3.0/8.0) cmap(i,2) = 1.0;