mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed VS2013 L4 warnings.
This commit is contained in:
parent
dd9188e475
commit
754083e624
1 changed files with 4 additions and 4 deletions
8
3rdparty/ocornut-imgui/imgui.cpp
vendored
8
3rdparty/ocornut-imgui/imgui.cpp
vendored
|
@ -957,7 +957,7 @@ struct ImGuiTextEditState
|
|||
ImGuiID Id; // widget id owning the text state
|
||||
ImWchar Text[1024]; // edit buffer, we need to persist but can't guarantee the persistence of the user-provided buffer. so we copy into own buffer.
|
||||
char InitialText[1024*4+1]; // backup of end-user buffer at the time of focus (in UTF-8, unaltered)
|
||||
size_t CurLenA, CurLenW; // we need to maintain our buffer length in both UTF-8 and wchar format.
|
||||
int CurLenA, CurLenW; // we need to maintain our buffer length in both UTF-8 and wchar format.
|
||||
size_t BufSizeA; // end-user buffer size, <= 1024 (or increase above)
|
||||
float Width; // widget width
|
||||
float ScrollX;
|
||||
|
@ -1835,7 +1835,7 @@ void ImGui::NewFrame()
|
|||
// Are we using inputs? Tell user so they can capture/discard the inputs away from the rest of their application.
|
||||
// When clicking outside of a window we assume the click is owned by the application and won't request capture.
|
||||
int mouse_earliest_button_down = -1;
|
||||
for (size_t i = 0; i < IM_ARRAYSIZE(g.IO.MouseDown); i++)
|
||||
for (int i = 0; i < IM_ARRAYSIZE(g.IO.MouseDown); i++)
|
||||
{
|
||||
if (g.IO.MouseClicked[i])
|
||||
g.IO.MouseDownOwned[i] = (g.HoveredWindow != NULL);
|
||||
|
@ -5548,7 +5548,7 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags f
|
|||
|
||||
if (flags & ImGuiInputTextFlags_CharsUppercase)
|
||||
if (c >= 'a' && c <= 'z')
|
||||
*p_char = (c += 'A'-'a');
|
||||
*p_char = (c += unsigned int('A'-'a'));
|
||||
|
||||
if (flags & ImGuiInputTextFlags_CharsNoBlank)
|
||||
if (ImCharIsSpace(c))
|
||||
|
@ -9298,7 +9298,7 @@ static void ShowExampleAppFixedOverlay(bool* opened)
|
|||
ImGui::End();
|
||||
}
|
||||
|
||||
static void ShowExampleAppManipulatingWindowTitle(bool* opened)
|
||||
static void ShowExampleAppManipulatingWindowTitle(bool* /*opened*/)
|
||||
{
|
||||
// By default, Windows are uniquely identified by their title.
|
||||
// You can use the "##" and "###" markers to manipulate the display/ID. Read FAQ at the top of this file!
|
||||
|
|
Loading…
Reference in a new issue