mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-18 14:16:36 +00:00
Merge pull request #266 from Extrawurst/patch-4
Fix minor clang-x64 warnings (fixes #265)
This commit is contained in:
commit
7d45c84f21
@ -10864,7 +10864,7 @@ void ImGui::ShowTestWindow(bool* opened)
|
|||||||
{
|
{
|
||||||
ImFont* font = ImGui::GetIO().Fonts->Fonts[i];
|
ImFont* font = ImGui::GetIO().Fonts->Fonts[i];
|
||||||
ImGui::BulletText("Font %d: %.2f pixels, %d glyphs", i, font->FontSize, font->Glyphs.Size);
|
ImGui::BulletText("Font %d: %.2f pixels, %d glyphs", i, font->FontSize, font->Glyphs.Size);
|
||||||
ImGui::TreePush((void*)i);
|
ImGui::TreePush((void*)(size_t)i);
|
||||||
ImGui::PushFont(font);
|
ImGui::PushFont(font);
|
||||||
ImGui::Text("The quick brown fox jumps over the lazy dog");
|
ImGui::Text("The quick brown fox jumps over the lazy dog");
|
||||||
ImGui::PopFont();
|
ImGui::PopFont();
|
||||||
@ -10905,7 +10905,7 @@ void ImGui::ShowTestWindow(bool* opened)
|
|||||||
{
|
{
|
||||||
for (int i = 0; i < 5; i++)
|
for (int i = 0; i < 5; i++)
|
||||||
{
|
{
|
||||||
if (ImGui::TreeNode((void*)i, "Child %d", i))
|
if (ImGui::TreeNode((void*)(size_t)i, "Child %d", i))
|
||||||
{
|
{
|
||||||
ImGui::Text("blah blah");
|
ImGui::Text("blah blah");
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
Loading…
Reference in New Issue
Block a user