From 6ea9e37e33b22721a4557e74931d676f493cb5c8 Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 8 Feb 2023 05:09:33 -0500 Subject: [PATCH] NES PPU Viewer - SpriteViewer also needed to be drawn without getting blurred --- src/BizHawk.Client.EmuHawk/tools/NES/SpriteViewer.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/NES/SpriteViewer.cs b/src/BizHawk.Client.EmuHawk/tools/NES/SpriteViewer.cs index 30e116b1b0..f61c65e022 100644 --- a/src/BizHawk.Client.EmuHawk/tools/NES/SpriteViewer.cs +++ b/src/BizHawk.Client.EmuHawk/tools/NES/SpriteViewer.cs @@ -22,7 +22,9 @@ namespace BizHawk.Client.EmuHawk private void Display(Graphics g) { - g.DrawImage(Sprites, 1, 1); + g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor; + g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.Half; + g.DrawImageUnscaled(Sprites, 1, 1); } private void SpriteViewer_Paint(object sender, PaintEventArgs e)