render parity unit I: 40250 PythonGraphic SetGamma, cooldown fan, up/down buttons
SetGamma, RenderCoolTimeBox, RenderUp/DownButton and GetAvailableMemory are transliterated from 40250 in place of stubs. The cooldown fan is emitted as untextured polygon UI commands (native_render + python_ui_surface.gd draw Bar+quad as a polygon); D3D8 shim gains SetGammaRamp/D3DGAMMARAMP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d3fd5f8613
commit
0e8a1574cb
@@ -1838,6 +1838,16 @@ private:
|
||||
u[1] = eu; v[1] = sv;
|
||||
u[2] = su; v[2] = ev;
|
||||
u[3] = eu; v[3] = ev;
|
||||
} else if (cmd.kind == UIRenderCommand::Bar && cmd.quad) {
|
||||
// An untextured polygon piece (CPythonGraphic::RenderCoolTimeBox's fan triangles).
|
||||
if (has_clip && (x2 <= cmd.clip_x1 || x1 >= cmd.clip_x2 || y2 <= cmd.clip_y1 || y1 >= cmd.clip_y2))
|
||||
continue;
|
||||
for (int k = 0; k < 4; ++k) {
|
||||
qx[k] = cmd.qx[k];
|
||||
qy[k] = cmd.qy[k];
|
||||
u[k] = 0.0f;
|
||||
v[k] = 0.0f;
|
||||
}
|
||||
} else {
|
||||
if (has_clip) {
|
||||
x1 = std::max(x1, cmd.clip_x1);
|
||||
|
||||
Reference in New Issue
Block a user