From c61c3cabc6400cc6c249f2dec650bcc7e8ed37c3 Mon Sep 17 00:00:00 2001 From: byuu <2107894+byuu@users.noreply.github.com> Date: Sun, 27 Oct 2019 01:27:36 +0900 Subject: [PATCH] . --- bsnes/emulator/emulator.hpp | 2 +- bsnes/sfc/ppu-fast/mode7hd.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bsnes/emulator/emulator.hpp b/bsnes/emulator/emulator.hpp index e1af66c9..474c761e 100644 --- a/bsnes/emulator/emulator.hpp +++ b/bsnes/emulator/emulator.hpp @@ -29,7 +29,7 @@ using namespace nall; namespace Emulator { static const string Name = "bsnes"; - static const string Version = "112.3"; + static const string Version = "112.4"; static const string Author = "byuu"; static const string License = "GPLv3"; static const string Website = "https://byuu.org"; diff --git a/bsnes/sfc/ppu-fast/mode7hd.cpp b/bsnes/sfc/ppu-fast/mode7hd.cpp index abdc4982..892ad25d 100644 --- a/bsnes/sfc/ppu-fast/mode7hd.cpp +++ b/bsnes/sfc/ppu-fast/mode7hd.cpp @@ -215,7 +215,7 @@ auto PPU::Line::renderMode7HD(PPU::IO::Background& self, uint8 source) -> void { if(doBelow && (!extbg || pixel.priority > below->priority)) *below = pixel; } } - } + } if(ppu.ss()) { uint divisor = scale * scale; @@ -228,7 +228,7 @@ auto PPU::Line::renderMode7HD(PPU::IO::Background& self, uint8 source) -> void { auto below = &this->below[p * scale]; for(uint x : range(scale)) { uint a = above[x].color; - uint b = below[x].color; + uint b = below[x].color; ab += a >> 0 & 31; ag += a >> 5 & 31; ar += a >> 10 & 31; @@ -238,7 +238,7 @@ auto PPU::Line::renderMode7HD(PPU::IO::Background& self, uint8 source) -> void { } } uint16 aboveColor = ab / divisor << 0 | ag / divisor << 5 | ar / divisor << 10; - uint16 belowColor = bb / divisor << 0 | bg / divisor << 5 | br / divisor << 10; + uint16 belowColor = bb / divisor << 0 | bg / divisor << 5 | br / divisor << 10; this->above[p] = {source, this->above[p * scale].priority, aboveColor}; this->below[p] = {source, this->below[p * scale].priority, belowColor}; }