Ignore:
Timestamp:
Apr 13, 2006, 2:25:36 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Fixed 4, 2 and 1-bit font rendering.
  • Replaced the 8-bit internal font with a 4-bit one.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/tools/makefont.c

    r747 r754  
    2626#define FONT "Monospace 9"
    2727#define DPI 96
    28 #define BPP 8
     28#define BPP 4
    2929
    3030static int const blocklist[] =
     
    260260
    261261                    pixel >>= (8 - BPP);
    262                     /* FIXME: BPP should appear here */
    263                     glyph_data[n / 8] |= (pixel << (n % 8));
     262                    glyph_data[n / 8] |= pixel << (8 - BPP - (n % 8));
    264263                    n += BPP;
    265264                }
Note: See TracChangeset for help on using the changeset viewer.