mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-03 06:17:44 -04:00
fonts: make friendly to rgb1555
This commit is contained in:
parent
3e1124f989
commit
14fa485ef2
1 changed files with 2 additions and 2 deletions
4
fonts.c
4
fonts.c
|
@ -250,13 +250,13 @@ void basic_text_out16_nf(void *fb, int w, int x, int y, const char *text)
|
|||
if (fd&0x02) s[6] = val;
|
||||
if (fd&0x01) s[7] = val;
|
||||
|
||||
// draw "shadow"
|
||||
// draw "shadow" (RGB1555 compatible)
|
||||
if (l > 0)
|
||||
fdp = fontdata8x8[c * 8 + l - 1];
|
||||
|
||||
for (fd1 = 0x80; fd1 != 0; fd1 >>= 1, s++)
|
||||
if (!(fd & (fd1 >> 1)) && ((fdp | fd) & fd1))
|
||||
s[1] = (s[1] >> 1) & 0x7bef;
|
||||
s[1] = (s[1] >> 1) & 0x39ef;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue