From 0753fbce9be03e05e0b880c2a866bbc2222bf3b2 Mon Sep 17 00:00:00 2001 From: Nabile Rahmani Date: Mon, 24 Dec 2018 17:13:27 +0100 Subject: [PATCH] - Blank the screen on invalid video state. - Name the CPU thread. --- DotN64.Desktop/SDL/Window.cs | 2 +- DotN64/Nintendo64.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/DotN64.Desktop/SDL/Window.cs b/DotN64.Desktop/SDL/Window.cs index c2a1268..2eec9a8 100644 --- a/DotN64.Desktop/SDL/Window.cs +++ b/DotN64.Desktop/SDL/Window.cs @@ -126,7 +126,7 @@ namespace DotN64.Desktop.SDL 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; } diff --git a/DotN64/Nintendo64.cs b/DotN64/Nintendo64.cs index 8bcd62d..2f17f4e 100644 --- a/DotN64/Nintendo64.cs +++ b/DotN64/Nintendo64.cs @@ -91,7 +91,8 @@ namespace DotN64 Debugger.Run(true); PowerOff(); } - }); + }) + { Name = nameof(VR4300) }; cpuThread.Start(); if (VideoOutput != null)