summaryrefslogtreecommitdiff
path: root/src/lib/ector
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-09-04 20:01:53 +0900
committerHermet Park <hermetpark@gmail.com>2019-09-04 20:03:05 +0900
commitc5b88ca745b5f457975963914bb2f319705f5c7e (patch)
treeba3b2943db475fe9c8fad30a2602a6bb9659d130 /src/lib/ector
parentf90c8b8910bd5c5303db143c9926a208a6bd114b (diff)
ector: add FIXME for coming issues.
We have no any test resouce but it seems very weird code... Leave a comment for future task.
Diffstat (limited to 'src/lib/ector')
-rw-r--r--src/lib/ector/software/ector_software_rasterizer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ector/software/ector_software_rasterizer.c b/src/lib/ector/software/ector_software_rasterizer.c
index 399b449..ad4aa25 100644
--- a/src/lib/ector/software/ector_software_rasterizer.c
+++ b/src/lib/ector/software/ector_software_rasterizer.c
@@ -284,6 +284,7 @@ _blend_gradient(int count, const SW_FT_Span *spans, void *user_data)
284 while (length) 284 while (length)
285 { 285 {
286 l = MIN(length, BLEND_GRADIENT_BUFFER_SIZE); 286 l = MIN(length, BLEND_GRADIENT_BUFFER_SIZE);
287 //FIXME: span->x must have adding an offset as much as subtracted length...
287 fetchfunc(buffer, sd, spans->y, spans->x, l); 288 fetchfunc(buffer, sd, spans->y, spans->x, l);
288 comp_func(target, buffer, l, sd->mul_col, spans->coverage); 289 comp_func(target, buffer, l, sd->mul_col, spans->coverage);
289 target += l; 290 target += l;
@@ -323,6 +324,7 @@ _blend_gradient_alpha(int count, const SW_FT_Span *spans, void *user_data)
323 while (length) 324 while (length)
324 { 325 {
325 int l = MIN(length, BLEND_GRADIENT_BUFFER_SIZE); 326 int l = MIN(length, BLEND_GRADIENT_BUFFER_SIZE);
327 //FIXME: span->x must have adding an offset as much as subtracted length...
326 fetchfunc(gbuffer, sd, spans->y, spans->x, l); 328 fetchfunc(gbuffer, sd, spans->y, spans->x, l);
327 uint32_t *temp = gbuffer; 329 uint32_t *temp = gbuffer;
328 330
@@ -371,6 +373,7 @@ _blend_gradient_alpha_inv(int count, const SW_FT_Span *spans, void *user_data)
371 while (length) 373 while (length)
372 { 374 {
373 int l = MIN(length, BLEND_GRADIENT_BUFFER_SIZE); 375 int l = MIN(length, BLEND_GRADIENT_BUFFER_SIZE);
376 //FIXME: span->x must have adding an offset as much as subtracted length...
374 fetchfunc(gbuffer, sd, spans->y, spans->x, l); 377 fetchfunc(gbuffer, sd, spans->y, spans->x, l);
375 uint32_t *temp = gbuffer; 378 uint32_t *temp = gbuffer;
376 379