fix font atlas colours
This commit is contained in:
parent
f8d1707450
commit
f211a29857
8
fonts.d
8
fonts.d
@ -175,10 +175,10 @@ CreateAtlas(Arena* arena, FontFace font, f32 size, u32 dimension)
|
||||
x = max_w + c;
|
||||
u64 offset = (y*dimension + x) * 4;
|
||||
|
||||
atlas.data[offset+0] = bmp.buffer[r*bmp.pitch + c];
|
||||
atlas.data[offset+1] = bmp.buffer[r*bmp.pitch + c];
|
||||
atlas.data[offset+2] = bmp.buffer[r*bmp.pitch + c];
|
||||
atlas.data[offset+3] = 255;
|
||||
atlas.data[offset+0] = 255;
|
||||
atlas.data[offset+1] = 255;
|
||||
atlas.data[offset+2] = 255;
|
||||
atlas.data[offset+3] = bmp.buffer[r*bmp.pitch + c];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user