|
|
|
@ -719,10 +719,8 @@ void ImGuiIO::AddInputCharacter(ImWchar c) |
|
|
|
|
const float IM_PI = 3.14159265358979323846f; |
|
|
|
|
|
|
|
|
|
#ifdef INT_MAX |
|
|
|
|
#define IM_INT_MIN INT_MIN |
|
|
|
|
#define IM_INT_MAX INT_MAX |
|
|
|
|
#else |
|
|
|
|
#define IM_INT_MIN (-2147483647-1) |
|
|
|
|
#define IM_INT_MAX (2147483647) |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
@ -742,7 +740,7 @@ static inline ImVec2 operator-(const ImVec2& lhs, const ImVec2& rhs) |
|
|
|
|
static inline ImVec2 operator*(const ImVec2& lhs, const ImVec2 rhs) { return ImVec2(lhs.x*rhs.x, lhs.y*rhs.y); } |
|
|
|
|
static inline ImVec2 operator/(const ImVec2& lhs, const ImVec2 rhs) { return ImVec2(lhs.x/rhs.x, lhs.y/rhs.y); } |
|
|
|
|
static inline ImVec2& operator+=(ImVec2& lhs, const ImVec2& rhs) { lhs.x += rhs.x; lhs.y += rhs.y; return lhs; } |
|
|
|
|
static inline ImVec2& operator-=(ImVec2& lhs, const ImVec2& rhs) { lhs.x -= rhs.x; lhs.y -= rhs.y; return lhs; } |
|
|
|
|
//static inline ImVec2& operator-=(ImVec2& lhs, const ImVec2& rhs) { lhs.x -= rhs.x; lhs.y -= rhs.y; return lhs; }
|
|
|
|
|
static inline ImVec2& operator*=(ImVec2& lhs, const float rhs) { lhs.x *= rhs; lhs.y *= rhs; return lhs; } |
|
|
|
|
//static inline ImVec2& operator/=(ImVec2& lhs, const float rhs) { lhs.x /= rhs; lhs.y /= rhs; return lhs; }
|
|
|
|
|
static inline ImVec4 operator-(const ImVec4& lhs, const ImVec4& rhs) { return ImVec4(lhs.x-rhs.x, lhs.y-rhs.y, lhs.z-rhs.z, lhs.w-lhs.w); } |
|
|
|
@ -11530,7 +11528,7 @@ void ImGui::ShowTestWindow(bool* opened) |
|
|
|
|
if (i > 0) ImGui::SameLine(); |
|
|
|
|
ImGui::BeginGroup(); |
|
|
|
|
ImGui::Text("%s", i == 0 ? "Top" : i == 1 ? "25%" : i == 2 ? "Center" : i == 3 ? "75%" : "Bottom"); |
|
|
|
|
ImGui::BeginChild(ImGui::GetID((void *)i), ImVec2(ImGui::GetWindowWidth() * 0.17f, 200.0f), true); |
|
|
|
|
ImGui::BeginChild(ImGui::GetID((void *)(intptr_t)i), ImVec2(ImGui::GetWindowWidth() * 0.17f, 200.0f), true); |
|
|
|
|
if (scroll_to) |
|
|
|
|
ImGui::SetScrollFromPosY(ImGui::GetCursorStartPos().y + scroll_to_px, i * 0.25f); |
|
|
|
|
for (int line = 0; line < 100; line++) |
|
|
|
|