increase input poll frequency
[drnoksnes] / ppu.cpp
diff --git a/ppu.cpp b/ppu.cpp
index b9a5963..7c22d69 100644 (file)
--- a/ppu.cpp
+++ b/ppu.cpp
 #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"
 
@@ -128,10 +124,6 @@ void S9xUpdateHTimer ()
 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];
@@ -140,7 +132,6 @@ void S9xFixColourBrightness ()
            IPPU.ScreenColors [i] = BUILD_PIXEL (IPPU.Red [i], IPPU.Green [i],
                                                 IPPU.Blue [i]);
        }
-    }
 }
 
 /**********************************************************************************************/
@@ -2404,7 +2395,7 @@ void S9xProcessMouse(int which1)
 
        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
@@ -2472,7 +2463,7 @@ void ProcessSuperScope()
        uint32 buttons;
 
        if (IPPU.Controller == SNES_SUPERSCOPE
-               && S9xReadSuperScopePosition(x, y, buttons))
+               && S9xReadSuperScopePosition(&x, &y, &buttons))
        {
 #define SUPERSCOPE_SIGNATURE 0x00ff
                uint32 scope;