mirror of https://github.com/MLXXXp/Arduboy2.git
Fix improper masking in Sprites drawPlusMask()
As per Josh Goebel @yyyc514
This commit is contained in:
parent
babf6893c8
commit
a01ceffb20
|
@ -274,7 +274,7 @@ void Sprites::drawBitmap(int16_t x, int16_t y,
|
||||||
// then
|
// then
|
||||||
"ld %[data], Y\n"
|
"ld %[data], Y\n"
|
||||||
"com %B[mask_data]\n" // invert high byte of mask
|
"com %B[mask_data]\n" // invert high byte of mask
|
||||||
"and %[data], r1\n" // %B[mask_data]
|
"and %[data], %B[mask_data]\n"
|
||||||
"or %[data], %B[bitmap_data]\n"
|
"or %[data], %B[bitmap_data]\n"
|
||||||
// update buffer, increment
|
// update buffer, increment
|
||||||
"st Y+, %[data]\n"
|
"st Y+, %[data]\n"
|
||||||
|
|
Loading…
Reference in New Issue