comment
This commit is contained in:
@@ -118,6 +118,7 @@ impl TextData {
|
|||||||
let pos = (x as i32 + pos.left, y as i32 + pos.top);
|
let pos = (x as i32 + pos.left, y as i32 + pos.top);
|
||||||
if let Some(pixel) = pixels.get_mut(&pos) {
|
if let Some(pixel) = pixels.get_mut(&pos) {
|
||||||
for i in 0..4 {
|
for i in 0..4 {
|
||||||
|
// TODO: no clue if proper alpha blending should be done
|
||||||
pixel[i] = color[i].saturating_add(pixel[i]);
|
pixel[i] = color[i].saturating_add(pixel[i]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user