From 8478f9f2eddf048172ebe3f64674f9bc0b7764dc Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 14:46:15 +0000 Subject: [PATCH] Decompile fn_01853 (CDCBitmap::SetAlpha) Batch #16137 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_01853 CDCBitmap::SetAlpha: logic confirmed by peer review Peer-reviewed-by: alisonrag, youko Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Render/DeviceContext/DCBitmap.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Source/Render/DeviceContext/DCBitmap.cpp b/Source/Render/DeviceContext/DCBitmap.cpp index b32e6f3cf..c5f218033 100644 --- a/Source/Render/DeviceContext/DCBitmap.cpp +++ b/Source/Render/DeviceContext/DCBitmap.cpp @@ -46,10 +46,6 @@ void CDCBitmap::Copy(int x, int y, int width, int height, const std::uint32_t* s // OFFSET: 0x005482D0 // FUNCTION: fn_01853 void CDCBitmap::SetAlpha(unsigned char maxLuminance) { - if (this->m_bitmap.height <= 0) { - return; - } - for (std::uint32_t y = 0; y < this->m_bitmap.height; ++y) { for (std::uint32_t x = 0; x < this->m_bitmap.width; ++x) { const std::uint32_t index = y * this->m_bitmap.width + x;