mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
Fixed GCC warnings.
This commit is contained in:
parent
872b25b447
commit
6403d9b5a6
3 changed files with 7 additions and 3 deletions
3
3rdparty/stb_truetype/stb_truetype.h
vendored
3
3rdparty/stb_truetype/stb_truetype.h
vendored
|
@ -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
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
#include "../common/processevents.h"
|
||||
#include "../common/imgui/imgui.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue