mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add dirty bit set to put_pixel()
This commit is contained in:
parent
2c3aef886c
commit
c05153b5af
1 changed files with 2 additions and 0 deletions
|
|
@ -303,6 +303,8 @@ fn put_pixel(fb: &mut LcdFB, x: usize, y: usize, color: PixelColor) {
|
||||||
} else {
|
} else {
|
||||||
fb[(x + y * LCD_WORDS_PER_LINE * 32) / 32] &= !(1 << (x % 32))
|
fb[(x + y * LCD_WORDS_PER_LINE * 32) / 32] &= !(1 << (x % 32))
|
||||||
}
|
}
|
||||||
|
// set the dirty bit on the line that contains the pixel
|
||||||
|
fb[y * LCD_WORDS_PER_LINE + (LCD_WORDS_PER_LINE - 1)] |= 0x1_0000;
|
||||||
}
|
}
|
||||||
|
|
||||||
// plotLine(int x0, int y0, int x1, int y1)
|
// plotLine(int x0, int y0, int x1, int y1)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue