fix precursor builds

This commit is contained in:
bunnie 2026-01-28 15:44:18 +08:00
parent 3bc1c23425
commit dc56fc7a09
2 changed files with 7 additions and 1 deletions

3
Cargo.lock generated
View file

@ -5535,7 +5535,7 @@ dependencies = [
[[package]]
name = "sha2"
version = "0.10.8"
source = "git+https://github.com/betrusted-io/hashes.git?branch=sha2-v0.10.8-xous#ef15aee3576eda5429b361bdee51eae3379ba8ff"
source = "git+https://github.com/betrusted-io/hashes.git?branch=sha2-v0.10.8-xous#c190327961172f8160db39f178ca6232fda8c8bf"
dependencies = [
"cfg-if",
"cpufeatures",
@ -7539,6 +7539,7 @@ dependencies = [
"num-derive 0.4.2",
"num-traits",
"rkyv 0.8.8",
"utralib 0.1.26",
"xous 0.9.69 (registry+https://github.com/rust-lang/crates.io-index)",
"xous-api-log",
"xous-api-names",

View file

@ -310,6 +310,11 @@ impl FrameBuffer for XousDisplay {
fb[clip_y * LCD_WORDS_PER_LINE + (LCD_WORDS_PER_LINE - 1)] |= 0x1_0000;
}
unsafe fn put_pixel_unchecked(&mut self, p: Point, color: ColorNative) {
// compatibility shim for other builds
self.put_pixel(p, color);
}
/// Retrieves a pixel value from the frame buffer; returns None if the point is out of bounds.
///
/// Note: this has not be carefully tested as this API is not used by the legacy code base.