Decompile 6 functions in Source/UI/Window/UIWindowMgr.cpp, Source/UI/Window/UIWindow.cpp, ...

Batch #17363 by eAthena: 0 byte-identical, 6 confirmed by peer review.

- fn_16944 UIWindow::FlushPrimitives: logic confirmed by peer review
- fn_20963 CooldownDrawing::SubmitNormal: logic confirmed by peer review
- fn_17238 UIWindowMgr::DrawWindows: logic confirmed by peer review
- fn_17223 UIWindowMgr::ProcessKeyDown: logic confirmed by peer review
- fn_17233 UIWindowMgr::Shutdown: logic confirmed by peer review
- fn_17234 UIWindowMgr::ClearMapWindows: logic confirmed by peer review

Peer-reviewed-by: alisonrag, SapitoSucio, cremane
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-11 22:07:32 +00:00
commit 9b8dbb21de
6 changed files with 99 additions and 89 deletions

View file

@ -27,6 +27,7 @@
#include "Render/Primitives/RenderPrimitivePool.h"
#include "Render/Primitives/RenderQueues.h"
#include "Render/Renderer.h"
#include "Render/DX9/RendererDX9.h"
#include "Render/Textures/SpritePixels.h"
#include "Render/Text/TextContext.h"
#include "Render/Textures/Texture.h"
@ -80,11 +81,17 @@
#include <cstdio>
#include <cstring>
#include <functional>
#include <set>
#include <span>
#include <string>
#include <windows.h>
#include <timeapi.h>
template std::_Tree_find_result<std::_Tree_node<UIWindow*, void*>*>
std::_Tree<std::_Tset_traits<UIWindow*, std::less<UIWindow*>, std::allocator<UIWindow*>, false>>::_Find_lower_bound<UIWindow*>(
UIWindow* const&
) const;
namespace {
struct NavigationTargetLook {
/* 0000 */ int job;
@ -1152,9 +1159,9 @@ void UIWindow::DrawEmboldenedText(int x, int y, const char* text, std::uint32_t
// OFFSET: 0x00A7C470
// FUNCTION: fn_16944
void UIWindow::FlushPrimitives(RenderQueues& queues, bool depthAlpha, float depthStart, float depthEnd) {
void UIWindow::FlushPrimitives() {
for (RenderPrimitive* primitive : this->m_overlayPrimitives) {
queues.Submit(primitive, 513, depthAlpha, depthStart, depthEnd);
static_cast<CRendererDX9*>(g_renderer)->Submit(primitive, 513);
}
this->m_overlayPrimitives.clear();