Fixed GCC warnings.

This commit is contained in:
bkaradzic 2013-04-24 22:03:04 -07:00
parent 872b25b447
commit 6403d9b5a6
3 changed files with 7 additions and 3 deletions

View file

@ -915,7 +915,6 @@ int stbtt_FindGlyphIndex(const stbtt_fontinfo *info, int unicode_codepoint)
// now decrement to bias correctly to find smallest
search -= 2;
while (entrySelector) {
stbtt_uint16 start, end;
searchRange >>= 1;
start = ttUSHORT(data + search + 2 + segcount*2 + 2);
end = ttUSHORT(data + search + 2);
@ -2062,4 +2061,4 @@ int stbtt_FindMatchingFont(const unsigned char *font_collection, const char *nam
}
}
#endif // STB_TRUETYPE_IMPLEMENTATION
#endif // STB_TRUETYPE_IMPLEMENTATION

View file

@ -14,7 +14,6 @@
#include "../common/processevents.h"
#include "../common/imgui/imgui.h"
#include <stdio.h>
#include <string.h>
#include <vector>
#include <string>

View file

@ -8,6 +8,12 @@
struct MouseState
{
MouseState()
: m_mx(0)
, m_my(0)
{
}
uint32_t m_mx;
uint32_t m_my;
uint8_t m_buttons[entry::MouseButton::Count];