Skip to content

Commit

Permalink
- Blank the screen on invalid video state.
Browse files Browse the repository at this point in the history
- Name the CPU thread.
  • Loading branch information
Nabile-Rahmani committed Dec 24, 2018
1 parent ac64a2d commit 0753fbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DotN64.Desktop/SDL/Window.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public unsafe void Draw(VideoFrame frame, RealityCoprocessor.VideoInterface vi,

if (frame.Size <= ControlRegister.PixelSize.Reserved || frame.Width <= 0 || frame.Height <= 0) // Do nothing on Blank or Reserved frame.
{
// Might want to clear the screen.
SDL_RenderClear(renderer);
SDL_RenderPresent(renderer);
return;
}
Expand Down
3 changes: 2 additions & 1 deletion DotN64/Nintendo64.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ public void Run()
Debugger.Run(true);
PowerOff();
}
});
})
{ Name = nameof(VR4300) };
cpuThread.Start();

if (VideoOutput != null)
Expand Down

0 comments on commit 0753fbc

Please sign in to comment.