summaryrefslogtreecommitdiff
path: root/gs/src/gstype2.c
diff options
context:
space:
mode:
authorRussell Lang <gsview@ghostgum.com.au>2002-10-07 08:28:56 +0000
committerRussell Lang <gsview@ghostgum.com.au>2002-10-07 08:28:56 +0000
commitbee6f34029e58442f6e997527bb7a72aaed70094 (patch)
tree2fc828a3235f2fa5400497e81f4a2dc40138d5a8 /gs/src/gstype2.c
parentaff5f1d0e781ccab381eacc36d4a5f7e0c9f7bc5 (diff)
Apply casts to remove lots of warnings from MSVC 6.
Update some Windows color mapping functions for DeviceN. Change order of arguments for the gs_pdf14_device_filter_push function and the calls to the device filter push procedure to match the prototype. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@3122 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gstype2.c')
-rw-r--r--gs/src/gstype2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gs/src/gstype2.c b/gs/src/gstype2.c
index f5b4cbb1d..a03ce5e04 100644
--- a/gs/src/gstype2.c
+++ b/gs/src/gstype2.c
@@ -435,7 +435,8 @@ gs_type2_interpret(gs_type1_state * pcis, const gs_glyph_data_t *pgd,
deltas = base + n - 1;
for (j = 0; j < n; j++, base++, deltas += k - 1)
for (i = 1; i < k; i++)
- *base += deltas[i] * pfont->data.WeightVector.values[i];
+ *base += (fixed)(deltas[i] *
+ pfont->data.WeightVector.values[i]);
}
cnext;
case c2_hstemhm:
@@ -666,7 +667,7 @@ gs_type2_interpret(gs_type1_state * pcis, const gs_glyph_data_t *pgd,
{
double prod = fixed2float(csp[-1]) * *csp;
- csp[-1] =
+ csp[-1] =
(prod > max_fixed ? max_fixed :
prod < min_fixed ? min_fixed : prod);
}