mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-30 10:13:08 +03:00
Fix mask
This commit is contained in:
parent
c456153e90
commit
a0b344afe6
@ -495,8 +495,8 @@ static PLANEPTR ami_bitmap_get_mask(struct bitmap *bitmap, int width, int height
|
||||
|
||||
for(y=0; y<height; y++) {
|
||||
for(x=0; x<width; x++) {
|
||||
if ((*bmi & 0x000000ffU) == 0x00000000U) maskbit = 1;
|
||||
else maskbit = 0;
|
||||
if ((*bmi & 0x000000ffU) == 0x00000000U) maskbit = 0;
|
||||
else maskbit = 1;
|
||||
bmi++;
|
||||
bitmap->native_mask[(y*(width/8)) + (x/8)] =
|
||||
(bitmap->native_mask[(y*(width/8)) + (x/8)] << 1) | maskbit;
|
||||
|
Loading…
Reference in New Issue
Block a user