diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2003-12-17 04:15:52 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2003-12-17 04:15:52 +0000 |
commit | 62bfc3bd0579501e4c7b04be1ae551abb08e0f39 (patch) | |
tree | 3d42b98f0c2fc515c47d3f3263c4409755cd2f99 /graphics/ale/files | |
parent | 042d621d2e24fb50b4d3f0b66bb4a4f04bd2e47f (diff) |
Notes
Diffstat (limited to 'graphics/ale/files')
-rw-r--r-- | graphics/ale/files/patch-ppm.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/ale/files/patch-ppm.h b/graphics/ale/files/patch-ppm.h new file mode 100644 index 000000000000..060097ec7669 --- /dev/null +++ b/graphics/ale/files/patch-ppm.h @@ -0,0 +1,11 @@ +--- ppm.h.orig Wed Dec 17 11:56:17 2003 ++++ ppm.h Wed Dec 17 11:57:01 2003 +@@ -189,7 +189,7 @@ + } + + if (mcv != CHANNEL_MAX) +- ival = (int) round(((double) ival / (double) (mcv)) * (CHANNEL_MAX)); ++ ival = (int) ceil(((double) ival / (double) (mcv)) * (CHANNEL_MAX) + 0.5); + + im->set_pixel_component(i, j, k, ival); + } |