better NESHawk version number

This commit is contained in:
andres.delikat 2011-09-24 17:07:48 +00:00
parent 6bbab41b0c
commit 9dd24ebe3e
2 changed files with 12 additions and 12 deletions

View File

@ -8,7 +8,7 @@ using BizHawk.Emulation.CPUs.M6502;
namespace BizHawk.Emulation.Consoles.Nintendo namespace BizHawk.Emulation.Consoles.Nintendo
{ {
[CoreVersion("0.0.0.1",FriendlyName="NESHawk")] [CoreVersion("0.9.9.9",FriendlyName="NESHawk")]
public partial class NES : IEmulator public partial class NES : IEmulator
{ {
//hardware/state //hardware/state

View File

@ -154,12 +154,12 @@ namespace BizHawk.Emulation.Consoles.Nintendo
{ {
for (int y = top; y < bottom; y++) for (int y = top; y < bottom; y++)
{ {
short pixel = emu.ppu.xbuf[(y*256) + x]; short pixel = emu.ppu.xbuf[(y * 256) + x];
if ((pixel & 0x8000) != 0 && useBackdrop) if ((pixel & 0x8000) != 0 && useBackdrop)
{ {
pixels[((y-top)*width) + (x - left)] = backdrop; pixels[((y - top) * width) + (x - left)] = backdrop;
} }
else pixels[((y-top)*width) + (x - left)] = emu.palette_compiled[pixel & 0x7FFF]; else pixels[((y - top) * width) + (x - left)] = emu.palette_compiled[pixel & 0x7FFF];
} }
} }
return pixels; return pixels;