mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 21:46:57 +03:00
stop opaque pixels being alphablended
svn path=/trunk/netsurf/; revision=6579
This commit is contained in:
parent
898d547bcf
commit
2210dafee9
@ -302,7 +302,7 @@ fb_32bpp_draw_ft_bitmap(FT_Bitmap *bp, int x, int y, colour c)
|
||||
abpixel = (pixel[((yoff + yloop) * bp->pitch) + xloop + xoff] << 24) | fgcol;
|
||||
if ((abpixel & 0xFF000000) != 0) {
|
||||
/* pixel is not transparent */
|
||||
if ((abpixel & 0xFF000000) != 0xFF) {
|
||||
if ((abpixel & 0xFF000000) != 0xFF000000) {
|
||||
abpixel = fb_plotters_ablend(abpixel,
|
||||
fb_32bpp_to_colour(*(pvideo + xloop)));
|
||||
}
|
||||
@ -511,7 +511,7 @@ static bool fb_32bpp_bitmap(int x, int y, int width, int height,
|
||||
for (xloop = 0; xloop < width; xloop++) {
|
||||
abpixel = pixel[((yoff + yloop) * bitmap->width) + xloop + xoff];
|
||||
if ((abpixel & 0xFF000000) != 0) {
|
||||
if ((abpixel & 0xFF000000) != 0xFF) {
|
||||
if ((abpixel & 0xFF000000) != 0xFF000000) {
|
||||
abpixel = fb_plotters_ablend(abpixel,
|
||||
fb_32bpp_to_colour(*(pvideo + xloop)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user