Decompile fn_01953 (DrawBlendedRectangle)

Batch #14179 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_01953 DrawBlendedRectangle: logic confirmed by peer review

Peer-reviewed-by: secret, KWDev, codeplay
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-07 08:31:13 +00:00
commit e1a6f7fb41

View file

@ -8,15 +8,12 @@
// OFFSET: 0x0054E590
// FUNCTION: fn_01953
void DrawBlendedRectangle(
RenderPrimitivePool& primitives, RenderQueues& queues, int x, int y, int width, int height, std::uint32_t color, bool depthAlpha,
float depthStart, float depthEnd
) {
void DrawBlendedRectangle(int x, int y, int width, int height, std::uint32_t color) {
if ((color & 0xFF000000u) == 0) {
return;
}
RenderPrimitive* primitive = primitives.Acquire();
RenderPrimitive* primitive = g_renderer->primitives.Acquire();
primitive->texture = g_texMgr.Default();
const float left = static_cast<float>(x);
const float top = static_cast<float>(y);
@ -39,7 +36,7 @@ void DrawBlendedRectangle(
}
primitive->unknown_0018 = 5;
primitive->unknown_001C = 6;
queues.Submit(primitive, 517, depthAlpha, depthStart, depthEnd);
g_renderer->queues.Submit(primitive, 517, g_renderer->fog.supported != 0, g_depthStart, g_depthEnd);
}
// OFFSET: 0x0054ED40