From 72019fac00e9f89584ddcdcc3278b60df2f42723 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 22:38:06 +0000 Subject: [PATCH] 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. --- Source/UI/Lists/UIScrollWnd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/UI/Lists/UIScrollWnd.cpp b/Source/UI/Lists/UIScrollWnd.cpp index da3edc02c..fae473d69 100644 --- a/Source/UI/Lists/UIScrollWnd.cpp +++ b/Source/UI/Lists/UIScrollWnd.cpp @@ -133,14 +133,14 @@ bool UIScrollWnd::UpdateCached(int redraw) { if (redraw == 1 || changed == 1) { std::list 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(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(