From 7cc56a01de5cab67bdf16b6bc895bfa369f53719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cicho=C5=84?= Date: Mon, 22 Aug 2022 21:50:13 +0200 Subject: [PATCH] pixelformats: Use "Alpha" instead of "Ignore Alpha" (#2875) --- examples/47-pixelformats/pixelformats.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/47-pixelformats/pixelformats.cpp b/examples/47-pixelformats/pixelformats.cpp index 0b2be847b..b67c4e3a4 100644 --- a/examples/47-pixelformats/pixelformats.cpp +++ b/examples/47-pixelformats/pixelformats.cpp @@ -197,7 +197,7 @@ public: } ImGui::SetCursorScreenPos(previewPos); - ImGui::Image(texture, m_ignoreAlpha ? IMGUI_FLAGS_NONE : IMGUI_FLAGS_ALPHA_BLEND, 0, previewSize); + ImGui::Image(texture, m_useAlpha ? IMGUI_FLAGS_ALPHA_BLEND : IMGUI_FLAGS_NONE, 0, previewSize); } else { @@ -247,7 +247,7 @@ public: ImGui::DragFloat("Preview Size", &m_previewSize, 1.0f, 10.0f, TEXTURE_SIZE); ImGui::SameLine(); - ImGui::Checkbox("Ignore Alpha", &m_ignoreAlpha); + ImGui::Checkbox("Alpha", &m_useAlpha); ImGui::BeginTable("Formats", NUM_FORMATS_IN_ROW, ImGuiTableFlags_Borders | ImGuiTableFlags_SizingFixedFit); for (int i = 0; i < NUM_FORMATS; ++i) { @@ -316,7 +316,7 @@ public: uint32_t m_debug; uint32_t m_reset; float m_previewSize = 50.0f; - bool m_ignoreAlpha = false; + bool m_useAlpha = true; bimg::TextureFormat::Enum m_selectedFormat = bimg::TextureFormat::RGBA8; bgfx::TextureHandle m_checkerboard = BGFX_INVALID_HANDLE;