Decompile fn_13779 (UIScrollWnd::UpdateCached)

Batch #17425 by eAthena: 1 byte-identical, 0 confirmed by peer review.

- fn_13779 UIScrollWnd::UpdateCached: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-11 22:38:06 +00:00
commit 72019fac00

View file

@ -133,14 +133,14 @@ bool UIScrollWnd::UpdateCached(int redraw) {
if (redraw == 1 || changed == 1) {
std::list<RenderPrimitive*> primitives(this->m_primitives);
for (UIWindow* child : this->m_children) {
if (child != this->horizontalBar && child != this->scrollBar) {
primitives.push_back(child->DrawPrimitive());
} else {
if (this->horizontalBar == child || this->scrollBar == child) {
static_cast<CDCBitmap*>(child->geometry.surface)->UploadTexture(child->m_texture);
primitives.push_back(this->BuildPrimitive(
child->geometry.x + this->horizontalScrollPosition, child->geometry.y + this->scrollPosition, 0, 0, child->geometry.width, child->geometry.height,
child->m_texture, child->Color()
));
} else {
primitives.push_back(child->DrawPrimitive());
}
}
g_renderer->RenderToTexture(