Files
wtclaude 5dd5780f42 fix(bridge): decode legacy animation art without GDI+ (#39, 1 of 2)
On a Linux/Mono shard the Asset Bridge's legacy-MUL catalogue art failed with
[GDI+ status: NotImplemented]: the vendored Ultima.Frame ctor builds a 16bpp
Bitmap (Settings.PixelFormat) and libgdiplus cannot create one. This finishes,
for the legacy animation path, the GDI+-free migration §4.4 began for UOP —
Windows and Linux now share one managed path rather than a Linux workaround.

- BridgeMul: a hand-written anim*.mul first-frame decoder to ARGB1555, mirroring
  Ultima.Frame's run loop with BridgeUop's bounds (no System.Drawing, no Bitmap).
- BridgeHue: Hue.ApplyTo reproduced over a ushort[], reusing the vendored
  Hues.List[i].Colors table so a body.def-hued creature tints identically.
- BridgeAssetValidator: RecordReader.ReadRecordCopy hands the verdata-patched
  record bytes to the managed decoder; a ResolveAnimation overload surfaces the
  body.def hue it already computes and discarded.
- BridgeCatalog: the legacy path now decodes through BridgeMul + BridgeHue ->
  BridgePng; the imaging gate is removed from assets.manifest/fetch, since the
  body catalogue (legacy + UOP) no longer touches System.Drawing. The record
  gate (ResolveAnimation/CheckEntry/AnimationSane) is unchanged.
- BridgeAnimParity: a [BridgeAnimParity] GM command / BRIDGE_ANIM_PARITY=1 boot
  run that compares the managed decode against the vendored one pixel for pixel.

Overlay-only; no wire change, no PROTOCOL_VERSION bump. The art/land path
(BridgeArt) and its imaging gate are the second PR. The art family's imaging.ok
status is unchanged meanwhile.

Verified on this machine's ServUO + live client: the parity harness compared all
40,341 records the Bridge serves and every one is pixel-identical to the vendored
GDI+ decode (0 mismatched, 0 missed); 102,923 out-of-band/invalid records the
Bridge refuses were correctly skipped.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014HJEmcaKvWQ8LsnXHKha5y
2026-11-25 21:12:24 -06:00
..