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

No need to do the same thing twice.

parent bb6a9538
No related branches found
No related tags found
No related merge requests found
Pipeline #7759 passed
......@@ -1837,7 +1837,6 @@ int bitmap_setpixels(uint32_t sx, uint32_t sy, uint32_t ex, uint32_t ey, uint32_
for (x = sx; x <= ex; x++) {
struct vmem_cell *vc = vmem_cell_ptr(vmem_ptr, x / vstat.charwidth, y / vstat.charheight);
vc->bg |= 0x04000000;
vc->bg |= 0x04000000;
if (screena.rect->data[pixel_offset(&screena, x, y)] != pixels->pixels[pos]) {
screena.rect->data[pixel_offset(&screena, x, y)] = pixels->pixels[pos];
screena.update_pixels = 1;
......@@ -1862,7 +1861,6 @@ int bitmap_setpixels(uint32_t sx, uint32_t sy, uint32_t ex, uint32_t ey, uint32_
for (x = sx; x <= ex; x++) {
struct vmem_cell *vc = vmem_cell_ptr(vmem_ptr, x / vstat.charwidth, y / vstat.charheight);
vc->bg |= 0x04000000;
vc->bg |= 0x04000000;
mask_byte = mpos / 8;
mask_bit = mpos % 8;
mask_bit = 0x80 >> mask_bit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment