mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-23 04:17:00 +00:00
Remove stray tabs
This commit is contained in:
parent
adae98664e
commit
b308d2728b
16
imgui.cpp
16
imgui.cpp
@ -7720,8 +7720,8 @@ void ImDrawList::PrimTriangle(const ImVec2& a, const ImVec2& b, const ImVec2& c,
|
|||||||
void ImDrawList::PrimRect(const ImVec2& a, const ImVec2& c, ImU32 col)
|
void ImDrawList::PrimRect(const ImVec2& a, const ImVec2& c, ImU32 col)
|
||||||
{
|
{
|
||||||
const ImVec2 uv = GImGui->FontTexUvWhitePixel;
|
const ImVec2 uv = GImGui->FontTexUvWhitePixel;
|
||||||
const ImVec2 b(c.x, a.y);
|
const ImVec2 b(c.x, a.y);
|
||||||
const ImVec2 d(a.x, c.y);
|
const ImVec2 d(a.x, c.y);
|
||||||
vtx_write[0].pos = a; vtx_write[0].uv = uv; vtx_write[0].col = col;
|
vtx_write[0].pos = a; vtx_write[0].uv = uv; vtx_write[0].col = col;
|
||||||
vtx_write[1].pos = b; vtx_write[1].uv = uv; vtx_write[1].col = col;
|
vtx_write[1].pos = b; vtx_write[1].uv = uv; vtx_write[1].col = col;
|
||||||
vtx_write[2].pos = c; vtx_write[2].uv = uv; vtx_write[2].col = col;
|
vtx_write[2].pos = c; vtx_write[2].uv = uv; vtx_write[2].col = col;
|
||||||
@ -7733,10 +7733,10 @@ void ImDrawList::PrimRect(const ImVec2& a, const ImVec2& c, ImU32 col)
|
|||||||
|
|
||||||
void ImDrawList::PrimRectUV(const ImVec2& a, const ImVec2& c, const ImVec2& uv_a, const ImVec2& uv_c, ImU32 col)
|
void ImDrawList::PrimRectUV(const ImVec2& a, const ImVec2& c, const ImVec2& uv_a, const ImVec2& uv_c, ImU32 col)
|
||||||
{
|
{
|
||||||
const ImVec2 b(c.x, a.y);
|
const ImVec2 b(c.x, a.y);
|
||||||
const ImVec2 d(a.x, c.y);
|
const ImVec2 d(a.x, c.y);
|
||||||
const ImVec2 uv_b(uv_c.x, uv_a.y);
|
const ImVec2 uv_b(uv_c.x, uv_a.y);
|
||||||
const ImVec2 uv_d(uv_a.x, uv_c.y);
|
const ImVec2 uv_d(uv_a.x, uv_c.y);
|
||||||
vtx_write[0].pos = a; vtx_write[0].uv = uv_a; vtx_write[0].col = col;
|
vtx_write[0].pos = a; vtx_write[0].uv = uv_a; vtx_write[0].col = col;
|
||||||
vtx_write[1].pos = b; vtx_write[1].uv = uv_b; vtx_write[1].col = col;
|
vtx_write[1].pos = b; vtx_write[1].uv = uv_b; vtx_write[1].col = col;
|
||||||
vtx_write[2].pos = c; vtx_write[2].uv = uv_c; vtx_write[2].col = col;
|
vtx_write[2].pos = c; vtx_write[2].uv = uv_c; vtx_write[2].col = col;
|
||||||
@ -10205,7 +10205,7 @@ void ImGui::ShowTestWindow(bool* opened)
|
|||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
|
|
||||||
// Scrolling columns
|
// Scrolling columns
|
||||||
/*
|
/*
|
||||||
ImGui::Text("Scrolling:");
|
ImGui::Text("Scrolling:");
|
||||||
ImGui::BeginChild("##header", ImVec2(0, ImGui::GetTextLineHeightWithSpacing()+ImGui::GetStyle().ItemSpacing.y));
|
ImGui::BeginChild("##header", ImVec2(0, ImGui::GetTextLineHeightWithSpacing()+ImGui::GetStyle().ItemSpacing.y));
|
||||||
ImGui::Columns(3);
|
ImGui::Columns(3);
|
||||||
@ -10228,7 +10228,7 @@ void ImGui::ShowTestWindow(bool* opened)
|
|||||||
|
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Create multiple items in a same cell before switching to next column
|
// Create multiple items in a same cell before switching to next column
|
||||||
ImGui::Text("Mixed items:");
|
ImGui::Text("Mixed items:");
|
||||||
|
Loading…
Reference in New Issue
Block a user