Fixed GCC warnings.

This commit is contained in:
bkaradzic 2014-08-15 19:14:17 -07:00
parent 3e6605a2c5
commit c56b7ad261
2 changed files with 3 additions and 3 deletions

View File

@ -652,7 +652,7 @@ struct Imgui
m_left = left; m_left = left;
m_scroll = _scroll; m_scroll = _scroll;
_inputChar = 0 > _inputChar ? 0 : _inputChar; _inputChar = _inputChar & 0x7f; // ASCII of GTFO! :)
m_lastChar = m_char; m_lastChar = m_char;
m_char = _inputChar; m_char = _inputChar;
} }

View File

@ -1207,7 +1207,7 @@ float fonsDrawText(struct FONScontext* stash,
const char* str, const char* end) const char* str, const char* end)
{ {
struct FONSstate* state = fons__getState(stash); struct FONSstate* state = fons__getState(stash);
unsigned int codepoint; unsigned int codepoint = 0;
unsigned int utf8state = 0; unsigned int utf8state = 0;
struct FONSglyph* glyph = NULL; struct FONSglyph* glyph = NULL;
struct FONSglyph* prevGlyph = NULL; struct FONSglyph* prevGlyph = NULL;
@ -1391,7 +1391,7 @@ float fonsTextBounds(struct FONScontext* stash,
float* bounds) float* bounds)
{ {
struct FONSstate* state = fons__getState(stash); struct FONSstate* state = fons__getState(stash);
unsigned int codepoint; unsigned int codepoint = 0;
unsigned int utf8state = 0; unsigned int utf8state = 0;
struct FONSquad q; struct FONSquad q;
struct FONSglyph* glyph = NULL; struct FONSglyph* glyph = NULL;