mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-02-09 08:13:27 +01:00
Snes9x - Fix Mode7 mosaic glitch from tile cleanup. (#876)
This commit is contained in:
parent
3c573f69dc
commit
96b7c849b4
@ -10,7 +10,7 @@
|
|||||||
namespace TileImpl {
|
namespace TileImpl {
|
||||||
|
|
||||||
template<class MATH, class BPSTART>
|
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))
|
if (Z1 > GFX.DB[Offset + 2 * N] && (M))
|
||||||
{
|
{
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
namespace TileImpl {
|
namespace TileImpl {
|
||||||
|
|
||||||
template<class MATH, class BPSTART>
|
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;
|
(void) OffsetInLine;
|
||||||
if (Z1 > GFX.DB[Offset + N] && (M))
|
if (Z1 > GFX.DB[Offset + N] && (M))
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
namespace TileImpl {
|
namespace TileImpl {
|
||||||
|
|
||||||
template<class MATH, class BPSTART>
|
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;
|
(void) OffsetInLine;
|
||||||
if (Z1 > GFX.DB[Offset + 2 * N] && (M))
|
if (Z1 > GFX.DB[Offset + 2 * N] && (M))
|
||||||
|
@ -38,7 +38,7 @@ namespace TileImpl {
|
|||||||
enum { Pitch = BPSTART::Pitch };
|
enum { Pitch = BPSTART::Pitch };
|
||||||
typedef BPSTART bpstart_t;
|
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>
|
template<class MATH>
|
||||||
@ -52,7 +52,7 @@ namespace TileImpl {
|
|||||||
enum { Pitch = BPSTART::Pitch };
|
enum { Pitch = BPSTART::Pitch };
|
||||||
typedef BPSTART bpstart_t;
|
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>
|
template<class MATH>
|
||||||
@ -75,7 +75,7 @@ namespace TileImpl {
|
|||||||
enum { Pitch = BPSTART::Pitch };
|
enum { Pitch = BPSTART::Pitch };
|
||||||
typedef BPSTART bpstart_t;
|
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>
|
template<class MATH>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user