graphics.dat: animation() and icon() ignore lighting #470

Closed
opened 2026-11-01 09:45:35 +01:00 by jqueuniet · 0 comments
Owner

image() takes style and light on console-family archives, but animation() and icon() don't: decode_animation_png and decode_icon_png call decode_image, which uses LightingContext::default() (main at 12cc98ed). A browser lighting Amiga or Sega CD images as a map would can't light animated wall and floor ornaments the same way.

Wanted: style and light options on animation() and icon(), as on image(), ignored on pc archives.

`image()` takes `style` and `light` on console-family archives, but `animation()` and `icon()` don't: `decode_animation_png` and `decode_icon_png` call `decode_image`, which uses `LightingContext::default()` (main at 12cc98ed). A browser lighting Amiga or Sega CD images as a map would can't light animated wall and floor ornaments the same way. Wanted: `style` and `light` options on `animation()` and `icon()`, as on `image()`, ignored on `pc` archives.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jqueuniet/dm2-tools#470
No description provided.