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:
edi - pointer to cellfile
esi - starting image frame (0..3)
ebx - starting draw x-position (-255..255)
ebp-0x50 - pointer to cellcontext
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.
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:
edi
- pointer to cellfileesi
- starting image frame (0..3)ebx
- starting draw x-position (-255..255)ebp-0x50
- pointer to cellcontextDrawing 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. Ifebx > 0
, then the image previous to the first also needs to be drawn. Do the same for subsequent rows until the screen is filled.