From 41fbca10f6c6cdd9c1623f1347e7ecb40f5e7f59 Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 8 Jul 2023 01:20:53 +0200 Subject: Add crude texture transparency --- src/GFX/Image/RawImage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GFX/Image/RawImage.cpp') diff --git a/src/GFX/Image/RawImage.cpp b/src/GFX/Image/RawImage.cpp index 6cb06b2..0bd2947 100644 --- a/src/GFX/Image/RawImage.cpp +++ b/src/GFX/Image/RawImage.cpp @@ -28,9 +28,9 @@ std::string RawImage::string() const { bool comma = false; str << "["; - for (const auto [r, g, b] : m_pixels) { + for (const auto [r, g, b, a] : m_pixels) { if (comma) { str << ", "; } - str << "{r=" << (uint)r << ", g=" << (uint)g << ", b=" << (uint)r << "}"; + str << "{r=" << (uint)r << ", g=" << (uint)g << ", b=" << (uint)b << ", a=" << (uint)a << "}"; comma = true; } str << "]"; -- cgit 1.4.1