git.ucc.asn.au
/
ipdf
/
code.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39599aa
)
Fix a warning/compile error.
author
David Gow
<
[email protected]
>
Sun, 6 Jul 2014 09:50:49 +0000
(17:50 +0800)
committer
David Gow
<
[email protected]
>
Sun, 6 Jul 2014 09:50:49 +0000
(17:50 +0800)
src/screen.cpp
patch
|
blob
|
history
diff --git
a/src/screen.cpp
b/src/screen.cpp
index
dc59de9
..
fdda252
100644
(file)
--- a/
src/screen.cpp
+++ b/
src/screen.cpp
@@
-378,7
+378,7
@@
void Screen::DebugFontInit(const char *name, float font_size)
size_t font_file_size = ftell(font_file);
fseek(font_file, 0, SEEK_SET);
unsigned char *font_file_data = (unsigned char*)malloc(font_file_size);
-
fread(font_file_data, 1, font_file_size, font_fil
e);
+
SDL_assert(fread(font_file_data, 1, font_file_size, font_file) == font_file_siz
e);
fclose(font_file);
stbtt_BakeFontBitmap(font_file_data,0, font_size, font_atlas_data,1024,1024, 32,96, m_debug_font_rects);
free(font_file_data);
UCC
git Repository :: git.ucc.asn.au