Skip to content

Commit

Permalink
Snes9x - Fix Mode7 mosaic glitch from tile cleanup. (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
bladeoner authored and dborth committed Oct 13, 2019
1 parent 3c573f6 commit 96b7c84
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/snes9x/tileimpl-h2x1.cpp
Expand Up @@ -10,7 +10,7 @@
namespace TileImpl {

template<class MATH, class BPSTART>
void HiresBase<MATH, BPSTART>::Draw(uint8 N, uint8 M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2)
void HiresBase<MATH, BPSTART>::Draw(int N, int M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2)
{
if (Z1 > GFX.DB[Offset + 2 * N] && (M))
{
Expand Down
2 changes: 1 addition & 1 deletion source/snes9x/tileimpl-n1x1.cpp
Expand Up @@ -10,7 +10,7 @@
namespace TileImpl {

template<class MATH, class BPSTART>
void Normal1x1Base<MATH, BPSTART>::Draw(uint8 N, uint8 M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2)
void Normal1x1Base<MATH, BPSTART>::Draw(int N, int M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2)
{
(void) OffsetInLine;
if (Z1 > GFX.DB[Offset + N] && (M))
Expand Down
2 changes: 1 addition & 1 deletion source/snes9x/tileimpl-n2x1.cpp
Expand Up @@ -10,7 +10,7 @@
namespace TileImpl {

template<class MATH, class BPSTART>
void Normal2x1Base<MATH, BPSTART>::Draw(uint8 N, uint8 M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2)
void Normal2x1Base<MATH, BPSTART>::Draw(int N, int M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2)
{
(void) OffsetInLine;
if (Z1 > GFX.DB[Offset + 2 * N] && (M))
Expand Down
6 changes: 3 additions & 3 deletions source/snes9x/tileimpl.h
Expand Up @@ -38,7 +38,7 @@ namespace TileImpl {
enum { Pitch = BPSTART::Pitch };
typedef BPSTART bpstart_t;

static void Draw(uint8 N, uint8 M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2);
static void Draw(int N, int M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2);
};

template<class MATH>
Expand All @@ -52,7 +52,7 @@ namespace TileImpl {
enum { Pitch = BPSTART::Pitch };
typedef BPSTART bpstart_t;

static void Draw(uint8 N, uint8 M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2);
static void Draw(int N, int M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2);
};

template<class MATH>
Expand All @@ -75,7 +75,7 @@ namespace TileImpl {
enum { Pitch = BPSTART::Pitch };
typedef BPSTART bpstart_t;

static void Draw(uint8 N, uint8 M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2);
static void Draw(int N, int M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2);
};

template<class MATH>
Expand Down

0 comments on commit 96b7c84

Please sign in to comment.