mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
Merge remote-tracking branch 'origin/main' into bunnie-dev
This commit is contained in:
commit
44dc56feb6
2 changed files with 6 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<TargetFramework>netstandard2.1</TargetFramework>
|
||||
<PlatformTarget>AMD64</PlatformTarget>
|
||||
<RenodePath>$PATH_TO_RENODE</RenodePath>
|
||||
</PropertyGroup>
|
||||
|
|
|
|||
|
|
@ -121,19 +121,22 @@ namespace Antmicro.Renode.Peripherals.Video
|
|||
|
||||
protected override void Repaint()
|
||||
{
|
||||
var newbuf = new Byte[44 * Height];
|
||||
for (int y = 0; y < Height; y++)
|
||||
{
|
||||
// We should redraw the line if:
|
||||
// 1) The `updateDirty` bit is set and the current line is dirty, or
|
||||
// 2) The `updateAll` bit is set.
|
||||
bool shouldRedrawLine = updateAll;
|
||||
foreach (int i in Enumerable.Range(41, 22))
|
||||
foreach (int i in Enumerable.Range(41, 2))
|
||||
{
|
||||
if (shouldRedrawLine)
|
||||
{
|
||||
break;
|
||||
}
|
||||
// A line is considered "dirty" if any bit following the pixel data is
|
||||
// nonzero. Because each line is 336 pixels wide (which yields 42 bytes
|
||||
// of data per line), the remaining 2 bytes indicate whether the line
|
||||
// is dirty or not.
|
||||
if (updateDirty && (this.videoRam.data[y * 44 + i] != 0))
|
||||
{
|
||||
shouldRedrawLine = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue