Update imgui_widgets.cpp

This commit is contained in:
0TheSpy
2022-11-14 13:34:58 +03:00
committed by GitHub
parent ea9d494d5f
commit 4561130433

View File

@ -10,6 +10,8 @@
#endif #endif
#include "imgui_internal.h" #include "imgui_internal.h"
const ImU32 colWhite = 0x99C1C1C1; const ImU32 colBlack = 0x99585858; const ImU32 colWhiteText = 0x99D9D9D9;
#include <ctype.h> #include <ctype.h>
#if defined(_MSC_VER) && _MSC_VER <= 1500 #if defined(_MSC_VER) && _MSC_VER <= 1500
#include <stddef.h> #include <stddef.h>
@ -78,7 +80,6 @@ static bool InputTextFilterCharacter(unsigned int* p_char, ImGuiInpu
static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end); static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end);
static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining = NULL, ImVec2* out_offset = NULL, bool stop_on_new_line = false); static ImVec2 InputTextCalcTextSizeW(const ImWchar* text_begin, const ImWchar* text_end, const ImWchar** remaining = NULL, ImVec2* out_offset = NULL, bool stop_on_new_line = false);
const ImU32 colWhite = 0xFFC1C1C1; const ImU32 colBlack = 0xFF585858; const ImU32 colWhiteText = 0xFFD9D9D9;
void ImGui::TextEx(const char* text, const char* text_end, ImGuiTextFlags flags) void ImGui::TextEx(const char* text, const char* text_end, ImGuiTextFlags flags)
{ {
ImGuiWindow* window = GetCurrentWindow(); ImGuiWindow* window = GetCurrentWindow();