OSDN Git Service
(root)
/
joypy
/
Thun.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
051b9a4
)
Okay, alright, skipping blank pixels.
author
Simon Forman
<sforman@hushmail.com>
Sun, 26 Feb 2023 19:12:07 +0000
(11:12 -0800)
committer
Simon Forman
<sforman@hushmail.com>
Sun, 26 Feb 2023 19:12:07 +0000
(11:12 -0800)
implementations/uvm-ncc/xerblin.c
patch
|
blob
|
history
diff --git
a/implementations/uvm-ncc/xerblin.c
b/implementations/uvm-ncc/xerblin.c
index
89acf81
..
a5b776a
100644
(file)
--- a/
implementations/uvm-ncc/xerblin.c
+++ b/
implementations/uvm-ncc/xerblin.c
@@
-19,8
+19,12
@@
draw_char(u8 ch, u64 dest_x, u64 dest_y)
u32* character_data = font_data[ch];
for (size_t x = 0; x < font_width; ++x) {
for (size_t y = 0; y < font_height; ++y) {
- u32 pixel = character_data[x + font_width * y];
u32* pix_ptr = dest + x + FRAME_WIDTH * y;
+ u32 dest_pixel = *pix_ptr;
+ u32 pixel = character_data[x + font_width * y];
+ if (!(pixel >> 24)) { // no alpha
+ continue;
+ }
*pix_ptr = pixel;
}
}