mirror of
https://github.com/cc65/cc65.git
synced 2025-04-04 21:33:30 +00:00
Some improvements in font generation
git-svn-id: svn://svn.cc65.org/cc65/trunk@3055 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
16634884af
commit
c39022729d
@ -67,14 +67,12 @@
|
||||
|
||||
static void makechar (void)
|
||||
{
|
||||
char *font;
|
||||
|
||||
static const unsigned char bittab[8] = {
|
||||
0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80
|
||||
};
|
||||
unsigned char i, ii, b;
|
||||
int c;
|
||||
int s,bc;
|
||||
register char *font;
|
||||
register unsigned char i, ii, b, bc;
|
||||
unsigned char c;
|
||||
|
||||
gotoxy (0, 1);
|
||||
|
||||
@ -87,12 +85,11 @@ static void makechar (void)
|
||||
|
||||
|
||||
for (c = 0; c < 0x40; ++c) {
|
||||
s = c;
|
||||
bc = 0;
|
||||
for (i = 0; i < 8; i++){
|
||||
b = 0;
|
||||
for (ii = 0; ii < 8; ii++) {
|
||||
bc += s;
|
||||
bc += c;
|
||||
if (bc > 0x3f) {
|
||||
bc = bc - 0x40;
|
||||
b += bittab[(ii + (i & 1)) & 0x7];
|
||||
|
Loading…
x
Reference in New Issue
Block a user