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).
This commit is contained in:
ragnarok-clanker 2026-11-10 14:46:15 +00:00
commit 8478f9f2ed

View file

@ -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;