Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BlitCopy support for wDstX < wSrcX #162

Open
approxit opened this issue Oct 13, 2022 · 1 comment
Open

BlitCopy support for wDstX < wSrcX #162

approxit opened this issue Oct 13, 2022 · 1 comment

Comments

@approxit
Copy link
Collaborator

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

In Last-Minute-Creations/villages@77b6cd0 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
Copy link
Member

tehKaiN commented Oct 13, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants