AmigaPorts / ACE

Amiga C Engine
Mozilla Public License 2.0
155 stars 26 forks source link

BlitCopy support for wDstX < wSrcX #162

Open approxit opened 1 year ago

approxit commented 1 year ago

It finally happened. After around 7 years, we just got use case for blitting with wDstX < wSrcX, which currently is not implemented.

In https://github.com/Last-Minute-Creations/villages/commit/77b6cd046187d4ae020b38b01df7a20b34d7b6bd I've prepared bugged version of blitting (hit space to actually render bitmap). In this use case, I'm trying to slide a bitmap from offscreen left side to center. Because we don't want to blit outside of buffer, we need to draw smaller chunks of bitmap. Details shown in below picture, made with such a professional tool:

obraz

tehKaiN commented 1 year ago

This requires blitting in descending mode so that pixels are blitted from bottom-right corner instead of top-left one as well as it will reverse the pixel shifting direction from right to left.