summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_software_rasterizer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ector/software/ector_software_rasterizer.c')
-rw-r--r--src/lib/ector/software/ector_software_rasterizer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ector/software/ector_software_rasterizer.c b/src/lib/ector/software/ector_software_rasterizer.c
index 62c3eac723..399b4490a2 100644
--- a/src/lib/ector/software/ector_software_rasterizer.c
+++ b/src/lib/ector/software/ector_software_rasterizer.c
@@ -316,7 +316,7 @@ _blend_gradient_alpha(int count, const SW_FT_Span *spans, void *user_data)
316 316
317 while (count--) 317 while (count--)
318 { 318 {
319 uint32_t *target = buffer + ((sd->raster_buffer->generic->w * spans->y) + spans->x); 319 uint32_t *target = buffer + ((pix_stride * spans->y) + spans->x);
320 uint32_t *mtarget = mbuffer + ((mask->generic->w * spans->y) + spans->x); 320 uint32_t *mtarget = mbuffer + ((mask->generic->w * spans->y) + spans->x);
321 int length = spans->len; 321 int length = spans->len;
322 322
@@ -364,7 +364,7 @@ _blend_gradient_alpha_inv(int count, const SW_FT_Span *spans, void *user_data)
364 364
365 while (count--) 365 while (count--)
366 { 366 {
367 uint32_t *target = buffer + ((sd->raster_buffer->generic->w * spans->y) + spans->x); 367 uint32_t *target = buffer + ((pix_stride * spans->y) + spans->x);
368 uint32_t *mtarget = mbuffer + ((mask->generic->w * spans->y) + spans->x); 368 uint32_t *mtarget = mbuffer + ((mask->generic->w * spans->y) + spans->x);
369 int length = spans->len; 369 int length = spans->len;
370 370