ref: 4f2d5b9a483996ddc103ead9eb223ba62b168a3b
parent: 454a428542e34ac043fc47a3e21b3c8e6a7b070c
author: David Turner <[email protected]>
date: Thu Jan 13 13:20:28 EST 2000
fixed a bug which prevented the raster from correctly performing horizontal dropout control..
--- a/src/base/ftraster.c
+++ b/src/base/ftraster.c
@@ -3307,7 +3307,9 @@
{
b = bits[0];
if (b < 127) b++;
- bits[0] = (64-x1) + (b >> 1);
+ b = (Byte)((64-x1) + (b >> 1));
+ /* if (b < 32) b = 32; */
+ bits[0] = b;
if ( ras.precision > 64 )
{
@@ -3331,7 +3333,9 @@
bits += incr;
b = bits[0];
if (b < 127) b++;
- bits[0] = (Byte)(x2 + (b >> 1));
+ b = (Byte)(x2 + (b >> 1));
+ /* if (b < 32) b = 32; */
+ bits[0] = b;
}
}
else
@@ -3338,7 +3342,9 @@
{
b = bits[0];
if (b < 127) b++;
- bits[0] = (Byte)((b >> 1)+(x2-x1));
+ b = (Byte)((b >> 1)+(x2-x1));
+ /* if (b < 32) b = 32; */
+ bits[0] = b;
}
}
}
@@ -3411,9 +3417,8 @@
color += *pixel;
if (color < 64)
color = 64;
-/*
+
*pixel = (color >= 127 ? 127 : (unsigned char)color );
- */
}
}