Skip to content
Snippets Groups Projects
Commit a40cda0c authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix bug in last commit

Pixes set via setpixels() were only set in the "blink off" screen
and not in the "blink on" screen... so they all reverse blinked.
parent b5488bb3
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2262 failed
...@@ -1427,6 +1427,7 @@ int bitmap_setpixels(uint32_t sx, uint32_t sy, uint32_t ex, uint32_t ey, uint32_ ...@@ -1427,6 +1427,7 @@ int bitmap_setpixels(uint32_t sx, uint32_t sy, uint32_t ex, uint32_t ey, uint32_
if (mask == NULL) { if (mask == NULL) {
for (x = sx; x <= ex; x++) { for (x = sx; x <= ex; x++) {
screena.screen[PIXEL_OFFSET(screena, x, y)] = pixels->pixels[pos]; screena.screen[PIXEL_OFFSET(screena, x, y)] = pixels->pixels[pos];
screena.rect->data[PIXEL_OFFSET(screena, x, y)] = color_value(pixels->pixels[pos]);
if (pixels->pixelsb) { if (pixels->pixelsb) {
screenb.screen[PIXEL_OFFSET(screenb, x, y)] = pixels->pixelsb[pos]; screenb.screen[PIXEL_OFFSET(screenb, x, y)] = pixels->pixelsb[pos];
screenb.rect->data[PIXEL_OFFSET(screenb, x, y)] = color_value(pixels->pixelsb[pos]); screenb.rect->data[PIXEL_OFFSET(screenb, x, y)] = color_value(pixels->pixelsb[pos]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment