projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
couple fixes
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_sfd.h
diff --git
a/world_sfd.h
b/world_sfd.h
index 5b5bd9973e5bb907860fb77e9518b8d5b9d406ff..3f94c4ed86fae271a5948d20c521179ccf395c65 100644
(file)
--- a/
world_sfd.h
+++ b/
world_sfd.h
@@
-60,16
+60,18
@@
VG_STATIC void sfd_encode( u32 row, const char *str )
for( int i=0; i<world.sfd.w; i++ )
{
for( int i=0; i<world.sfd.w; i++ )
{
+ u32 idx = (world.sfd.w*row_h + i) * 2;
+
if( end )
{
if( end )
{
- world.sfd.buffer[
world.sfd.w*row_h + i
] = 0.0f;
+ world.sfd.buffer[
idx
] = 0.0f;
}
else
{
if( !str[i] )
end = 1;
}
else
{
if( !str[i] )
end = 1;
- world.sfd.buffer[
world.sfd.w*row_h + i
] = sfd_encode_glyph( str[i] );
+ world.sfd.buffer[
idx
] = sfd_encode_glyph( str[i] );
}
}
}
}
}
}