mirror of https://github.com/ocornut/imgui
Fixed warnings
This commit is contained in:
parent
d440a13b7e
commit
dac9266f6f
|
@ -5548,7 +5548,7 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags f
|
||||||
|
|
||||||
if (flags & ImGuiInputTextFlags_CharsUppercase)
|
if (flags & ImGuiInputTextFlags_CharsUppercase)
|
||||||
if (c >= 'a' && c <= 'z')
|
if (c >= 'a' && c <= 'z')
|
||||||
*p_char = (c += 'A'-'a');
|
*p_char = (c += (unsigned int)('A'-'a'));
|
||||||
|
|
||||||
if (flags & ImGuiInputTextFlags_CharsNoBlank)
|
if (flags & ImGuiInputTextFlags_CharsNoBlank)
|
||||||
if (ImCharIsSpace(c))
|
if (ImCharIsSpace(c))
|
||||||
|
@ -5560,7 +5560,7 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInputTextFlags f
|
||||||
ImGuiTextEditCallbackData callback_data;
|
ImGuiTextEditCallbackData callback_data;
|
||||||
memset(&callback_data, 0, sizeof(ImGuiTextEditCallbackData));
|
memset(&callback_data, 0, sizeof(ImGuiTextEditCallbackData));
|
||||||
callback_data.EventFlag = ImGuiInputTextFlags_CallbackCharFilter;
|
callback_data.EventFlag = ImGuiInputTextFlags_CallbackCharFilter;
|
||||||
callback_data.EventChar = c;
|
callback_data.EventChar = (ImWchar)c;
|
||||||
callback_data.Flags = flags;
|
callback_data.Flags = flags;
|
||||||
callback_data.UserData = user_data;
|
callback_data.UserData = user_data;
|
||||||
if (callback(&callback_data) != 0)
|
if (callback(&callback_data) != 0)
|
||||||
|
@ -9300,6 +9300,8 @@ static void ShowExampleAppFixedOverlay(bool* opened)
|
||||||
|
|
||||||
static void ShowExampleAppManipulatingWindowTitle(bool* opened)
|
static void ShowExampleAppManipulatingWindowTitle(bool* opened)
|
||||||
{
|
{
|
||||||
|
(void)opened;
|
||||||
|
|
||||||
// By default, Windows are uniquely identified by their title.
|
// 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!
|
// You can use the "##" and "###" markers to manipulate the display/ID. Read FAQ at the top of this file!
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue