This commit is contained in:
2025-11-18 01:13:24 -05:00
parent 38d7ca3090
commit 9febd03067

View File

@@ -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 {