#include "apu.h"
#include "dma.h"
#include "gfx.h"
-#include "display.h"
#include "sa1.h"
-#ifndef _SNESPPC
-//#include "netplay.h"
-#endif
#include "sdd1.h"
#include "srtc.h"
void S9xFixColourBrightness ()
{
IPPU.XB = mul_brightness [PPU.Brightness];
-#ifndef _SNESPPC
- if (Settings.SixteenBit)
-#endif
- {
for (int i = 0; i < 256; i++)
{
IPPU.Red [i] = IPPU.XB [PPU.CGDATA [i] & 0x1f];
IPPU.ScreenColors [i] = BUILD_PIXEL (IPPU.Red [i], IPPU.Green [i],
IPPU.Blue [i]);
}
- }
}
/**********************************************************************************************/
CPU.BranchSkip = TRUE;
break;
}
- if (Address & 3 < 2)
+ if ((Address & 3) < 2)
{
int r = rand();
if (r & 2)
{
if (r & 4)
- return (Address & 3 == 1 ? 0xaa : 0xbb);
+ return ((Address & 3) == 1 ? 0xaa : 0xbb);
else
return ((r >> 3) & 0xff);
}
if ((IPPU.Controller == SNES_MOUSE
|| IPPU.Controller == SNES_MOUSE_SWAPPED)
- && S9xReadMousePosition(which1, x, y, buttons))
+ && S9xReadMousePosition(which1, &x, &y, &buttons))
{
int delta_x, delta_y;
#define MOUSE_SIGNATURE 0x1
uint32 buttons;
if (IPPU.Controller == SNES_SUPERSCOPE
- && S9xReadSuperScopePosition(x, y, buttons))
+ && S9xReadSuperScopePosition(&x, &y, &buttons))
{
#define SUPERSCOPE_SIGNATURE 0x00ff
uint32 scope;