Quote:
Originally Posted by axilmar
No, I have not added 2 bytes to the source start address.
If I also add 2 bytes to the source start address, it blits the white background.
|
Appologies, I made an error here. In descending mode, all pointers should start at the very last word of the blit. Assuming you've already done this for the source, the same goes for the destination.
Setting up for a position which takes into account shifting is then done by moving the destination pointer
only, not the source. So you indeed don't need to add 2 bytes to the source.
Looking at the code, it seems like you might not be setting the correct masking values. In descending mode, the two masks are reversed in order (i.e. ALFWM masks the last word instead of the first and vice versa).
Quote:
Originally Posted by HRM
...
the first word mask masks the last word in a row (which is still the first word fetched), and the last word mask masks the first word in a row
...
|