mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-10 19:13:29 +00:00
Fix 'outline' convolution matrices for rendered text
This issue was originally reported here: https://twitter.com/vine2D/status/748579114265653248/
This commit is contained in:
parent
d566604205
commit
71321dfc82
@ -70,14 +70,20 @@ doc::Image* render_text(const std::string& fontfile, int fontsize,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
doc::put_pixel(
|
int output_alpha = MUL_UN8(doc::rgba_geta(color), alpha, t);
|
||||||
image, ximg, yimg,
|
if (output_alpha) {
|
||||||
doc::rgba_blender_normal(
|
doc::color_t output_color =
|
||||||
doc::get_pixel(image, ximg, yimg),
|
|
||||||
doc::rgba(doc::rgba_getr(color),
|
doc::rgba(doc::rgba_getr(color),
|
||||||
doc::rgba_getg(color),
|
doc::rgba_getg(color),
|
||||||
doc::rgba_getb(color),
|
doc::rgba_getb(color),
|
||||||
MUL_UN8(doc::rgba_geta(color), alpha, t))));
|
output_alpha);
|
||||||
|
|
||||||
|
doc::put_pixel(
|
||||||
|
image, ximg, yimg,
|
||||||
|
doc::rgba_blender_normal(
|
||||||
|
doc::get_pixel(image, ximg, yimg),
|
||||||
|
output_color));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user