mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
emulation: memlcd: fix of-by-one error in redraw
This would cause us to escape the screen under rare circumstances. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
6162284d76
commit
4c76bb1a3d
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ namespace Antmicro.Renode.Peripherals.Video
|
||||||
// 1) The `updateDirty` bit is set and the current line is dirty, or
|
// 1) The `updateDirty` bit is set and the current line is dirty, or
|
||||||
// 2) The `updateAll` bit is set.
|
// 2) The `updateAll` bit is set.
|
||||||
bool shouldRedrawLine = updateAll;
|
bool shouldRedrawLine = updateAll;
|
||||||
foreach (int i in Enumerable.Range(42, 22)) {
|
foreach (int i in Enumerable.Range(41, 22)) {
|
||||||
if (shouldRedrawLine) {
|
if (shouldRedrawLine) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue