mir-diablo-ii-tools / SlashGaming-Diablo-II-Free-Resolution

A project aimed at modding Diablo II to support any resolution.
Other
106 stars 23 forks source link

Patch summit background drawing #122

Closed Jarcho closed 8 months ago

Jarcho commented 1 year ago

Currently the summit background is drawn awkwardly in the corner on higher resolutions. This is mostly a note to myself to implement this. Patches are similar for other versions, just need to find the patch locations.

1.14d patch

Location: 0x765cd..0x767f5 Needed values:

Drawing routine

The summit image is a 1024x768 image stored as twelve frames, four frames per row. The whole image tiles, so we can use that to fill the screen.

Drawing would start at the frame in esi, and continue moving across the screen cycling through the frames making up the row in the full image. If ebx > 0, then the image previous to the first also needs to be drawn. Do the same for subsequent rows until the screen is filled.