summary refs log tree commit diff
path: root/src/GFX/Image/RawImage.cpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2023-07-08 01:20:53 +0200
committerMel <einebeere@gmail.com>2023-07-08 01:20:53 +0200
commit41fbca10f6c6cdd9c1623f1347e7ecb40f5e7f59 (patch)
tree7a41651c7c1eeecfc422395cbdb4b26ac619eaf9 /src/GFX/Image/RawImage.cpp
parentf8c0fb7e5d4cd0139b2b287980149eca688803bd (diff)
downloadmeowcraft-41fbca10f6c6cdd9c1623f1347e7ecb40f5e7f59.tar.zst
meowcraft-41fbca10f6c6cdd9c1623f1347e7ecb40f5e7f59.zip
Add crude texture transparency
Diffstat (limited to 'src/GFX/Image/RawImage.cpp')
-rw-r--r--src/GFX/Image/RawImage.cpp4
1 files changed, 2 insertions, 2 deletions
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 << "]";