mheyer32 / alienbreed3d2

Alien Breed 3D II The Killing Grounds
33 stars 4 forks source link

Fix HUD in C build for AGA modes #102

Closed 0xABADCAFE closed 1 year ago

0xABADCAFE commented 1 year ago

The C build uses a different render path (intended for RTG) that only updates the border inside a bitmap lock. This is incompatible with the ASM/AGA only workflow. This PR implements Planar AGA equivalents of the functions used in RTG. The planar versions still use the glyph buffer from the RTG version but use it to rearrange the data such that all source bitplane data for a glyph are contiguously arranged.

Tested in AGA mode at 320x256 and various higher resolutions.