projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MENY
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_sfd.h
diff --git
a/world_sfd.h
b/world_sfd.h
index 29244e8c843caf70dfcb3ad73b3e60323b3a6035..0f8e3746d567798e10d847fa4adfb4f3d8e7f645 100644
(file)
--- a/
world_sfd.h
+++ b/
world_sfd.h
@@
-56,18
+56,20
@@
float sfd_encode_glyph( char c )
static void sfd_encode( struct sfd_instance *display, u32 row, const char *str )
{
int end=0;
static void sfd_encode( struct sfd_instance *display, u32 row, const char *str )
{
int end=0;
+ u32 row_h = display->h-1-row;
+
for( int i=0; i<display->w; i++ )
{
if( end )
{
for( int i=0; i<display->w; i++ )
{
if( end )
{
- display->buffer[display->w*row + i] = 0.0f;
+ display->buffer[display->w*row
_h
+ i] = 0.0f;
}
else
{
if( !str[i] )
end = 1;
}
else
{
if( !str[i] )
end = 1;
- display->buffer[display->w*row + i] = sfd_encode_glyph( str[i] );
+ display->buffer[display->w*row
_h
+ i] = sfd_encode_glyph( str[i] );
}
}
}
}
}
}