mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix cursor overlay in sh1107 display mode
This commit is contained in:
parent
db4d21c54c
commit
b6ed2c7398
1 changed files with 8 additions and 1 deletions
|
|
@ -173,6 +173,12 @@ impl ComposedType {
|
|||
} else {
|
||||
blitstr2::xor_glyph_2x(rawbuf, (maybe_x, maybe_y), glyph, glyph.invert ^ invert, cr);
|
||||
}
|
||||
// Platform-dependent cursor inversion because the color scheme for sh1107 doesn't comply
|
||||
// to precursor norms
|
||||
#[cfg(any(feature = "board-baosec", feature = "hosted-baosec"))]
|
||||
let curse_invert = true;
|
||||
#[cfg(not(any(feature = "board-baosec", feature = "hosted-baosec")))]
|
||||
let curse_invert = invert;
|
||||
if glyph.insert {
|
||||
// log::info!("insert at {},{}", glyph.ch, strpos - 1);
|
||||
// draw the insertion point after the glyph's position
|
||||
|
|
@ -183,8 +189,9 @@ impl ComposedType {
|
|||
Point::new(maybe_x as isize - 1, maybe_y as isize + glyph.high as isize),
|
||||
),
|
||||
Some(clip_rect),
|
||||
invert,
|
||||
curse_invert,
|
||||
);
|
||||
frbuf.put_pixel(Point::new(2, 2), 0.into());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue