Decompile fn_10795 (UIBitmapButton::Paint)
Batch #12457 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_10795 UIBitmapButton::Paint: logic confirmed by peer review Peer-reviewed-by: Yommy, gordaoprogramas, KWDev, kyoshi Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
dbcf190515
commit
f74ffe4da4
1 changed files with 4 additions and 4 deletions
|
|
@ -47,18 +47,18 @@ void UIBitmapButton::Paint() {
|
|||
|
||||
switch (this->geometry.unknown_0030) {
|
||||
case 0:
|
||||
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(this->m_names[0].c_str()));
|
||||
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve(this->m_names[0].c_str())));
|
||||
break;
|
||||
case 1:
|
||||
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(this->m_names[1].c_str()));
|
||||
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve(this->m_names[1].c_str())));
|
||||
break;
|
||||
case 2:
|
||||
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(this->m_names[2].c_str()));
|
||||
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve(this->m_names[2].c_str())));
|
||||
break;
|
||||
}
|
||||
|
||||
if (this->m_disabled != 0 && !this->m_names[3].empty()) {
|
||||
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(this->m_names[3].c_str()));
|
||||
bitmap = static_cast<CBitmapRes*>(ResourceMgr::Instance().Load(Resolve(this->m_names[3].c_str())));
|
||||
}
|
||||
|
||||
this->DrawBitmap(0, 0, bitmap ? &bitmap->image : nullptr, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue