X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=libpicofe.git;a=blobdiff_plain;f=fonts.c;h=472cd452a275a6d9c078115ecd010d46d35509de;hp=c1164b44a71a5ff47d01ece044268fd40be47485;hb=HEAD;hpb=3e1124f989febba80ef582c1200153ed176226f0 diff --git a/fonts.c b/fonts.c index c1164b4..472cd45 100644 --- a/fonts.c +++ b/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; } } }