projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
numerous
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_sfd.h
diff --git
a/world_sfd.h
b/world_sfd.h
index 88f73316585dc28980d4b708da56045be628dafa..515232cf31dc8daea63fe5c6671359f7d8a40be0 100644
(file)
--- a/
world_sfd.h
+++ b/
world_sfd.h
@@
-44,7
+44,7
@@
float sfd_encode_glyph( char c )
value = 63-c;
else
{
value = 63-c;
else
{
- int base =
'A'+11+27
;
+ int base =
11+26
;
switch( c )
{
switch( c )
{
@@
-58,8
+58,8
@@
float sfd_encode_glyph( char c )
case '*': value=base+7; break;
case '+': value=base+8; break;
case '-': value=base+9; break;
case '*': value=base+7; break;
case '+': value=base+8; break;
case '-': value=base+9; break;
- case '
:
': value=base+10; break;
- case '
/
': value=base+11; break;
+ case '
/
': value=base+10; break;
+ case '
:
': value=base+11; break;
default: value=0; break;
}
}
default: value=0; break;
}
}
@@
-206,7
+206,7
@@
static void world_sfd_init(void)
float const k_glyph_uvw = 1.0f/64.0f;
vert->uv[0] -= k_glyph_uvw * (float)(i-4);
vert->colour[0] = 0.0f;
float const k_glyph_uvw = 1.0f/64.0f;
vert->uv[0] -= k_glyph_uvw * (float)(i-4);
vert->colour[0] = 0.0f;
- vert->colour[1] = i
-4
;
+ vert->colour[1] = i
*36
;
}
}
}
}
@@
-216,7
+216,7
@@
static void world_sfd_init(void)
free( mboard );
vg_tex2d_init( (vg_tex2d *[]){ &tex_scoretext }, 1 );
free( mboard );
vg_tex2d_init( (vg_tex2d *[]){ &tex_scoretext }, 1 );
- sfd_new( &sfd->tester,
16, 8
);
+ sfd_new( &sfd->tester,
27, 13
);
}
static void world_sfd_register(void)
}
static void world_sfd_register(void)