Decompile fn_10796 (UIBitmapEditCtrl::Paint)

Batch #3799 by youko: 0 byte-identical, 1 confirmed by peer review.

- fn_10796 UIBitmapEditCtrl::Paint: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, eAthena, Yommy
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-10-29 23:29:07 +00:00
commit 5fc913874a

View file

@ -130,6 +130,14 @@ void UIEditCtrl3::Slot35(int value) {
}
// OFFSET: 0x0085BB60
// FUNCTION: fn_10796
void UIBitmapEditCtrl::Paint() {
this->ClearSurface(0xFFFFFFFF);
CBitmapRes* bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve(this->bitmapName.c_str())));
this->DrawBitmap(0, 0, bitmap ? &bitmap->image : nullptr, false);
this->textY = 3;
this->PaintText();
}
// OFFSET: 0x0085EB50