mirror of https://github.com/snes9xgit/snes9x.git
Define alwaysinline to PIXEL functions.
This commit is contained in:
parent
3b9820d75b
commit
1f2b5988c1
10
tile.cpp
10
tile.cpp
|
@ -20,7 +20,7 @@ namespace {
|
||||||
struct BPProgressive
|
struct BPProgressive
|
||||||
{
|
{
|
||||||
enum { Pitch = 1 };
|
enum { Pitch = 1 };
|
||||||
static uint32 Get(uint32 StartLine) { return StartLine; }
|
static alwaysinline uint32 Get(uint32 StartLine) { return StartLine; }
|
||||||
};
|
};
|
||||||
|
|
||||||
// Interlace: Only draw every other line, so we'll redefine bpstart_t and Pitch to do so.
|
// Interlace: Only draw every other line, so we'll redefine bpstart_t and Pitch to do so.
|
||||||
|
@ -28,7 +28,7 @@ namespace {
|
||||||
struct BPInterlace
|
struct BPInterlace
|
||||||
{
|
{
|
||||||
enum { Pitch = 2 };
|
enum { Pitch = 2 };
|
||||||
static uint32 Get(uint32 StartLine) { return StartLine * 2 + BG.InterlaceLine; }
|
static alwaysinline uint32 Get(uint32 StartLine) { return StartLine * 2 + BG.InterlaceLine; }
|
||||||
};
|
};
|
||||||
|
|
||||||
// The 1x1 pixel plotter, for speedhacking modes.
|
// The 1x1 pixel plotter, for speedhacking modes.
|
||||||
|
@ -38,7 +38,7 @@ namespace {
|
||||||
enum { Pitch = BPSTART::Pitch };
|
enum { Pitch = BPSTART::Pitch };
|
||||||
typedef BPSTART bpstart_t;
|
typedef BPSTART bpstart_t;
|
||||||
|
|
||||||
static void Draw(int N, int M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2)
|
static alwaysinline void 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))
|
||||||
|
@ -59,7 +59,7 @@ namespace {
|
||||||
enum { Pitch = BPSTART::Pitch };
|
enum { Pitch = BPSTART::Pitch };
|
||||||
typedef BPSTART bpstart_t;
|
typedef BPSTART bpstart_t;
|
||||||
|
|
||||||
static void Draw(int N, int M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2)
|
static alwaysinline void 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))
|
||||||
|
@ -89,7 +89,7 @@ namespace {
|
||||||
enum { Pitch = BPSTART::Pitch };
|
enum { Pitch = BPSTART::Pitch };
|
||||||
typedef BPSTART bpstart_t;
|
typedef BPSTART bpstart_t;
|
||||||
|
|
||||||
static void Draw(int N, int M, uint32 Offset, uint32 OffsetInLine, uint8 Pix, uint8 Z1, uint8 Z2)
|
static alwaysinline void 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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue